home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / FAQs / netfaqs / GNUemacs-faq < prev    next >
Text File  |  1994-08-01  |  193KB  |  4,432 lines

  1.  
  2. Newsgroups: gnu.emacs.help,comp.emacs,news.answers,comp.answers
  3. From: sbyrnes@rice.edu (Steven Byrnes)
  4. Subject: GNU Emacs FAQ
  5. Summary: READ BEFORE POSTING.  A regularly posted list of answers to frequently
  6.          asked questions (FAQs) about GNU Emacs and many Emacs Lisp programs.
  7.          Contains pointers to other resources.
  8. Keywords: gnu emacs faq answers frequently asked questions periodic
  9. Date: 4 May 93 02:52:18 GMT
  10. Expires: Sat, 3 Jul 1993 02:52:18 GMT
  11. Reply-To: gnu-emacs-faq-maintainers@bigbird.bu.edu
  12. Organization: GNU's Not UNIX
  13. Lines: 300
  14. Approved: news-answers-request@mit.edu
  15. Originator: sbyrnes@is.rice.edu
  16. Xref: senator-bedfellow.mit.edu gnu.emacs.help:10205 comp.emacs:17187 news.answers:8178 comp.answers:620
  17.  
  18. Archive-Name: GNU-Emacs-FAQ/part0
  19. Last-Modified: Tue, 4 May 1993 02:43:42 GMT
  20. Last-Posted: Tue, 4 May 1993 02:52:18 GMT
  21.  
  22.                        GNU Emacs FAQ: Introduction
  23.  
  24. [To find what has changed, see the "Changes" posting.]
  25.  
  26. [The FAQ post date slipped big-time this time.  Now that school is over
  27.  with and I can get on with the rest of my life, posting should become a
  28.  lot more regular. - sbyrnes]
  29.  
  30. This is the introduction to a list of frequently asked questions (FAQ) about
  31. GNU Emacs with answers.  This article contains a listing of the questions;
  32. subsequent articles contain the questions and answers.
  33.  
  34. The FAQ list is posted to reduce the noise level in the `gnu.emacs.help'
  35. newsgroup (which is also the `help-gnu-emacs' mailing list) which results from
  36. the repetition of frequently asked questions, wrong answers to these questions,
  37. corrections to the wrong answers, corrections to the corrections, debate, name
  38. calling, etc.  Also, it serves as a repository of the canonical "best" answers
  39. to these questions.  However, if you know a better answer or even a slight
  40. change that improves an answer, please tell us!
  41.  
  42. If you know the answer of a question is in the FAQ list, please reply to the
  43. question by e-mail instead of posting.  Help reduce noise!
  44.  
  45. The FAQ list is crossposted to `comp.emacs' because some sites do not receive
  46. the `gnu.*' newsgroups.  The FAQ list is also crossposted to `news.answers'.
  47.  
  48. Please suggest new questions, answers, wording changes, deletions, etc.  The
  49. most helpful form for suggestions is a context diff (ie., the output of `diff
  50. -c').  Include `FAQ' in the subject of messages sent to us about the FAQ list.
  51.  
  52. Please do not send questions to us just because you do not want to disturb a
  53. lot of people and you think we would know the answer.  We do not have time to
  54. answer questions individually.  :-(
  55.  
  56. Full instructions for getting the latest FAQ are in question 22.  Also see the
  57. `Introduction to news.answers' posting in the `news.answers' newsgroup, or send
  58. e-mail to `mail-server@rtfm.mit.edu' with `help' on a body line, or use FTP,
  59. WAIS, or Prospero to rtfm.mit.edu.
  60.  
  61. These ideas have already been suggested, but we have not had time to
  62. implement them:
  63.  
  64.   * A Texinfo version.
  65.   * Marking questions in the table of contents that have been changed
  66.     recently.
  67.  
  68. -- 
  69. Steven Byrnes <sbyrnes@rice.edu> (and Joe Wells <jbw@cs.bu.edu>)
  70.  
  71. E-mail lpf@uunet.uu.net for details about the League for Programming Freedom.
  72.  
  73. ----------------------------------------------------------------------
  74.  
  75.                      GNU Emacs FAQ: Table of Contents
  76.  
  77. Notation Used in FAQ
  78.  
  79. 1:   What do these mean: C-h, M-C-a, RET, "ESC a", etc.?
  80. 2:   What does "M-x command" mean?
  81. 3:   How do I read topic XXX in the on-line manual?
  82. 4:   What do these mean: etc/SERVICE, src/config.h, lisp/default.el?
  83. 5:   What are FSF, LPF, OSF, GNU, RMS, FTP, and GPL?
  84.  
  85. General Questions
  86.  
  87. 6:   What is the LPF and why should I join it?
  88. 7:   What is the real legal meaning of the GNU copyleft?
  89. 8:   What are appropriate messages for gnu.emacs.help, gnu.emacs.bug,
  90.      comp.emacs, etc.?
  91. 9:   Where can I get old postings to gnu.emacs.help and other GNU groups?
  92. 10:  Where should I report bugs and other problems with GNU Emacs?
  93. 11:  How do I unsubscribe to this mailing list?
  94. 12:  What is the current address of the FSF?
  95.  
  96. On-line Help, Printed Manuals, Other Sources of Help
  97.  
  98. 13:  I'm just starting GNU Emacs; how do I do basic editing?
  99. 14:  How do I find out how to do something in GNU Emacs?
  100. 15:  How do I get a printed copy of the GNU Emacs manual?
  101. 16:  Where can I get documentation on GNU Emacs Lisp?
  102. 17:  How do I install a piece of Texinfo documentation?
  103. 18:  How do I print a Texinfo file?
  104. 19:  Can I view Info files without using GNU Emacs?
  105. 20:  What informational files are available for GNU Emacs?
  106. 21:  Where can I get help in installing GNU Emacs?
  107. 22:  Where can I get the latest version of this document (the FAQ list)?
  108.  
  109. Status of Emacs
  110.  
  111. 23:  Where does the name "Emacs" come from?
  112. 24:  What is the latest version of GNU Emacs?
  113. 25:  When will GNU Emacs 19 be available?
  114. 26:  What is different about GNU Emacs 19?
  115. 27:  What variants of GNU Emacs exist?
  116.  
  117. Common Things People Want To Do
  118.  
  119. 28:  How do I set up a .emacs file properly?
  120. 29:  How do I debug a .emacs file?
  121. 30:  How do I make Emacs display the current line (or column) number?
  122. 31:  How do I turn on Abbrevs by default just in mode XXX?
  123. 32:  How do I turn on Auto-Fill mode by default?
  124. 33:  How do I make Emacs use a certain major mode for certain files?
  125. 34:  How do I search for, delete, or replace unprintable (8-bit or control)
  126.      characters?
  127. 35:  How can I highlight a region of text in Emacs?
  128. 36:  How do I control Emacs's case-sensitivity when searching/replacing?
  129. 37:  How do I make Emacs wrap words for me?
  130. 38:  Where can I get a better spelling checker for Emacs?
  131. 39:  How can I spell-check TeX or *roff documents?
  132. 40:  How do I change load-path?
  133. 41:  How do I use an already running Emacs from another window?
  134. 42:  How do I make Emacs recognize my compiler's funny error messages?
  135. 43:  How do I indent switch statements like this?
  136. 44:  How can I make Emacs automatically scroll horizontally?
  137. 45:  How do I make Emacs "typeover" or "overwrite" instead of inserting?
  138. 46:  How do I stop Emacs from beeping on a terminal?
  139. 47:  How do I turn down the bell volume in Emacs running under X Windows?
  140. 48:  How do I tell Emacs to automatically indent a new line to the
  141.      indentation of the previous line?
  142. 49:  How do I show which parenthesis matches the one I'm looking at?
  143. 50:  In C mode, can I show just the lines that will be left after #ifdef
  144.      commands are handled by the compiler?
  145. 51:  Is there an equivalent to the `.' (dot) command of vi?
  146. 52:  What are the valid X resource settings (ie., stuff in .Xdefaults)?
  147. 53:  How do I execute a piece of Emacs Lisp code?
  148. 54:  How do I change Emacs's idea of the tab character's length?
  149. 55:  How do I insert `>' at the beginning of every line?
  150. 56:  How do I insert `_^H' before each character in a paragraph to get an
  151.      underlined paragraph?
  152. 57:  How do I repeat a command as many times as possible?
  153. 58:  How do I make Emacs behave like this: when I go up or down, the cursor
  154.      should stay in the same column even if the line is too short?
  155. 59:  How do I tell Emacs to iconify itself?
  156. 60:  How do I use regexps (regular expressions) in Emacs?
  157. 61:  How do I perform a replace operation across more than one file?
  158. 62:  Where is the documentation for `etags'?
  159.  
  160. Bugs/Problems
  161.  
  162. 63:  Does Emacs have problems with files larger than 8 megabytes?
  163. 64:  Why can't Emacs find files in current directory on startup?
  164. 65:  How do I get rid of the ^M junk in my Shell buffer?
  165. 66:  Why do I get `Process shell exited abnormally with code 1'?
  166. 67:  Why can't I cut from Emacs and paste in other X programs?
  167. 68:  Where is the termcap/terminfo entry for terminal type `emacs'?
  168. 69:  Why does Emacs spontaneously start displaying `I-search:' and beeping?
  169. 70:  Why can't Emacs talk to certain hosts (or certain hostnames)?
  170. 71:  Why does Emacs say `Error in init file'?
  171. 72:  Why does Emacs ignore my X resources (my .Xdefaults file)?
  172. 73:  Why does Emacs take 20 seconds to visit a file?
  173. 74:  How do I edit a file with a `$' in its name?
  174. 75:  Why does Shell mode lose track of the shell's current directory?
  175. 76:  Why doesn't my change to load-path work?
  176. 77:  Why does the cursor always go to the wrong column when I move up or
  177.      down one line?
  178. 78:  Why does Emacs hang with message `Unknown XMenu error' with X11R4?
  179. 79:  Why doesn't display-time show the load average in the mode line
  180.      anymore?
  181. 80:  Why does ispell sometimes ignore the local dictionary?
  182. 81:  Why does Ispell treat each line as a single word?
  183. 82:  Are there any security risks in GNU Emacs?
  184.  
  185. Difficulties Building/Installing/Porting Emacs
  186.  
  187. 83:  What should I do if I have trouble building Emacs?
  188. 84:  How do I stop Emacs from failing when the executable is stripped?
  189. 85:  Why does linking Emacs with -lX11 fail?
  190. 86:  Why does Emacs 18.55 say `Fatal error (6).Abort' under SunOS 4.1?
  191.  
  192. Finding/Getting Emacs and Related Packages
  193.  
  194. 87:  Where can I get GNU Emacs on the net (or by snail mail)?
  195. 88:  How do I find a GNU Emacs Lisp package that does XXX?
  196. 89:  Where can I get GNU Emacs Lisp packages that don't come with Emacs?
  197. 90:  How do I submit code to the Emacs Lisp Archive?
  198. 91:  Where can I get other up-to-date GNU stuff?
  199. 92:  Where can I get an Emacs with better mouse and X window support?
  200. 93:  What is the difference between GNU Emacs and Epoch?
  201. 94:  What is the difference between GNU Emacs and Lucid GNU Emacs?
  202. 95:  Where can I get the "unofficial HP GNU Emacs"?
  203. 96:  Where can I get Emacs for my PC running MS-DOS?
  204. 97:  Where can I get Emacs for my PC running Windows?
  205. 98:  Where can I get Emacs for my PC running OS/2?
  206. 99:  Where can I get Emacs for my Atari ST?
  207. 100: Where can I get Emacs for my Amiga?
  208. 101: Where can I get Emacs for my Apple computer?
  209. 102: Where can I get Emacs with NeWS support?
  210. 103: Where do I get Emacs that runs on VMS under DECwindows?
  211. 104: Where can I get modes for Lex, Yacc/Bison, Bourne Shell, Csh, C++,
  212.      Objective C, Pascal, Awk?
  213. 105: What is the IP address of XXX.YYY.ZZZ?
  214.  
  215. Major Emacs Lisp Packages, Emacs Extensions, and Related Programs
  216.  
  217. 106: VM (View Mail) -- another mail reader within Emacs
  218. 107: Supercite -- mail and news citation package within Emacs
  219. 108: GNUS -- news reader within Emacs
  220. 109: Calc -- poor man's Mathematica within Emacs
  221. 110: Calendar/Diary -- calendar manager within Emacs
  222. 111: Ange-FTP -- transparent FTP access for Emacs's file access routines
  223. 112: VIP -- vi emulation for Emacs
  224. 113: Dired -- better directory editor for Emacs
  225. 114: AUC TeX -- enhanced LaTeX mode with debugging facilities
  226. 115: Hyperbole -- extensible hypertext management system within Emacs
  227. 116: Byte Compiler -- enhanced version of Emacs's byte compiler
  228. 117: comint -- hugely enhanced shell mode and other derived modes
  229. 118: BBDB -- personal info rolodex integrated with mail/news readers
  230. 119: Ispell -- spell checker in C with interface for Emacs
  231. 120: Epoch -- enhanced GNU Emacs with better X interface
  232. 121: Lucid GNU Emacs -- alternative Emacs 19 with better X interface
  233. 122: Demacs -- GNU Emacs altered to run on MS-DOS on 386/486 machines
  234. 123: Freemacs -- a small Emacs for MS-DOS
  235. 124: Patch -- program to apply "diffs" for updating files
  236.  
  237. Changing Key Bindings and Handling Key Binding Problems
  238.  
  239. 125: How do I bind keys (including function keys) to commands?
  240. 126: Why does Emacs say `Key sequence XXX uses invalid prefix characters'?
  241. 127: Why doesn't this [terminal or window-system setup] code work in my
  242.      .emacs file, but it works just fine after Emacs starts up?
  243. 128: How do I use function keys under X Windows?
  244. 129: How do I tell what characters my function or arrow keys emit?
  245. 130: How do I set the X key "translations" for Emacs?
  246. 131: How do I handle C-s and C-q being used for flow control?
  247. 132: How do I use commands bound to C-s and C-q (or any key) if these keys
  248.      are filtered out?
  249. 133: Why does the `BackSpace' key invoke help?
  250. 134: Why doesn't Emacs look at the stty settings for Backspace vs. Delete?
  251. 135: Why don't the arrow keys work?
  252. 136: How do I "swap" two keys?
  253. 137: How do I produce C-XXX with my keyboard?
  254. 138: What if I don't have a Meta key?
  255. 139: What if I don't have an Escape key?
  256. 140: How do I type DEL on PC terminal emulators?
  257. 141: Can I make my `Compose Character' key behave like a Meta key?
  258. 142: How do I bind a combination of modifier key and function key?
  259. 143: Why doesn't my Meta key work in an xterm window?
  260. 144: Why doesn't my ExtendChar key work as a Meta key under HP-UX 8.0?
  261. 145: Where can I get key bindings to make Emacs emulate WordStar?
  262. 146: Where can I get an XEDIT emulator for Emacs?
  263.  
  264. Using Emacs with Alternate Character Sets
  265.  
  266. 147: How do I make Emacs display 8-bit characters?
  267. 148: How do I input 8-bit characters?
  268. 149: Where can I get an Emacs that can handle kanji characters?
  269. 150: Where can I get an Emacs that can handle Chinese?
  270. 151: Where is an Emacs that can handle Semitic (right-to-left) alphabets?
  271.  
  272. Mail and News
  273.  
  274. 152: How do I change the included text prefix in mail/news followups?
  275. 153: How do I save a copy of outgoing mail?
  276. 154: Why doesn't Emacs expand my aliases when sending mail?
  277. 155: Why does RMAIL think all my saved messages are one big message?
  278. 156: How can I sort the messages in my RMAIL folder?
  279. 157: Why does RMAIL need to write to /usr/spool/mail?
  280. 158: How do I recover my mail files after RMAIL munges their format?
  281. 159: How do I make Emacs automatically start my mail/news reader?
  282. 160: How do I read news under Emacs?
  283. 161: Why does `rnews' say "No News is good news" when there is news?
  284. 162: Why doesn't GNUS work anymore via NNTP?
  285. 163: How do I view text with embedded underlining (eg., ClariNews)?
  286. 164: When I try to post a long article in GNUS (about 10K or longer), I get
  287.      the error, "Writing to process: no more processes, nntpd"
  288. 165: How do I save all the items of a multi-part posting in GNUS?
  289. 166: Why does GNUS put the subjects in replies beyond the 80th column?
  290. 167: Why is GNUS so slow to start up?
  291. 168: How do I catch up all newsgroups in GNUS?
  292. 169: Why can't I kill in GNUS on the Newsgroups/Keywords/Control line?
  293. 170: How do I get rid of flashing messages in GNUS for slow connections?
  294. 171: Why is catch up slow in Gnews/GNUS?
  295. 172: Why does GNUS hang for a long time when posting?
  296. 173: Why don't my news postings in GNUS get past the local machine?
  297. 174: Why is the GNUS-generated `Date:' header invalid?
  298. 175: Why doesn't GNUS generate the `Lines:' header?
  299. 176: Why do I get "Cannot open load file" "nntp" when compiling GNUS?
  300. 177: How do I kill all articles in GNUS but those matching a pattern?
  301.  
  302.  
  303. ----------------------------------------------------------------------
  304. Copyright (C) 1990, 1991, 1992 Joseph Brian Wells
  305. Copyright (C) 1992, 1993 Steven Byrnes
  306.  
  307. This list of frequently asked questions about GNU Emacs with answers
  308. ("FAQ") may be translated into other languages, transformed into other
  309. formats (e.g. Texinfo, Info, WWW, WAIS, etc.), and updated with new
  310. information.  The same conditions apply to any derivative of the FAQ as
  311. apply to the FAQ itself.  Every copy of the FAQ must include this notice
  312. or an approved translation, information on who is currently maintaining
  313. the FAQ and how to contact them (including their e-mail address), and
  314. information on where the latest version of the FAQ is archived (including
  315. FTP information).  The FAQ may be copied and redistributed under these
  316. conditions, except that the FAQ may not be embedded in a larger literary
  317. work unless that work itself allows free copying and redistribution.
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.                GNU Emacs FAQ: Notation/General/Help/Status
  327.  
  328. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x $" to
  329. get an overview of just the questions.  Then, when you want to look at the text
  330. of the answers, just type "C-x $".
  331.  
  332. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a C-r if
  333. that doesn't work, then type ESC to end the search.
  334.  
  335. A `+' in the 78th column means something was inserted on the line.  A `-' means
  336. something was deleted and a `!' means some combination of insertions and
  337. deletions occurred.
  338.  
  339. Full instructions for getting the latest FAQ are in question 22.  Also see the
  340. `Introduction to news.answers' posting in the `news.answers' newsgroup, or send
  341. e-mail to `mail-server@rtfm.mit.edu' with `help' on a body line, or use FTP,
  342. WAIS, or Prospero to rtfm.mit.edu.
  343.  
  344.  
  345.  
  346. Notation Used in FAQ
  347.  
  348.   Skip this section and then come back if you don't understand some of the
  349.   later answers.
  350.   
  351. 1:   What do these mean: C-h, M-C-a, RET, "ESC a", etc.?
  352.   
  353.   C-x means press the `x' key while holding down the Control key.  M-x means
  354.   press the `x' key while holding down the Meta key.  M-C-x means press the
  355.   `x' key while holding down both the Control key and the Meta key.  C-M-a
  356.   is a synonym for M-C-a.  RET, LFD, DEL, ESC, and TAB respectively refer to
  357.   pressing the Return, Linefeed (aka Newline), Delete, Escape, and Tab keys
  358.   and are equivalent to C-m, C-j, C-?, C-[, and C-i.  SPC means press the
  359.   Space bar.
  360.   
  361.   I put any key sequence that is longer than one key (and some single-key
  362.   sequences) inside double quotes or on a line by itself.  Any real spaces
  363.   in such a key sequence should be ignored; only SPC really means press the
  364.   space key.
  365.   
  366.   The ASCII code sent by C-x (except for C-?) is the value that would be
  367.   sent by pressing just `x' minus 96 (or 64 for uppercase `X') and will be
  368.   from 0 to 31.  The ASCII code sent by M-x is the sum of 128 and the ASCII
  369.   code that would be sent by pressing just the `x' key.  Essentially, the
  370.   Control key turns off bits 5 and 6 and the Meta key turns on bit 7.
  371.   
  372.   For further information, see `Characters' and `Keys' in the online manual.
  373.   
  374.   NOTE: C-? (aka DEL) is ASCII code 127.  It is a misnomer to call C-? a
  375.   "control" key, since 127 has both bits 5 and 6 turned ON.  Also, on very
  376.   few keyboards does Control-? generate ASCII code 127.
  377.   
  378. 2:   What does "M-x command" mean?
  379.   
  380.   "M-x command" means type M-x, then type the name of the command, then
  381.   type RET.
  382.   
  383.   M-x (by default) invokes the command `execute-extended-command'.  This
  384.   command allows you to run any Emacs command if you can remember the
  385.   command's name.  If you can't remember the command's name, you can type
  386.   TAB and SPC for completion, and "?" for a list of possibilities.  An Emacs
  387.   "command" is any "interactive" Emacs function.
  388.   
  389.   NOTE: Your system administrator may have bound other key sequences to
  390.   invoke execute-extended-command.  A function key labeled `Do' is a good
  391.   candidate for this.
  392.   
  393.   To run non-interactive Emacs functions, see question 53.
  394.   
  395. 3:   How do I read topic XXX in the on-line manual?
  396.   
  397.   When I refer you to topic XXX in the on-line manual, you can read this
  398.   manual node inside Emacs (assuming nothing is broken) by typing this:
  399.   
  400.     C-h i m emacs RET m XXX RET
  401.   
  402.   This invokes the Info facility.  If you don't already know how to use
  403.   Info, type "?" from within Info.
  404.   
  405.   If I refer you to topic XXX:YYY, you need to type this:
  406.   
  407.     C-h i m emacs RET m XXX RET m YYY RET
  408.   
  409.   WARNING: Your system administrator may not have installed the Info files,
  410.   or may have installed them properly.  In this case you should complain.
  411.   
  412. 4:   What do these mean: etc/SERVICE, src/config.h, lisp/default.el?
  413.   
  414.   These are files that come with GNU Emacs.  The GNU Emacs distribution is
  415.   divided into subdirectories; the important ones are `etc', `lisp', and
  416.   `src'.
  417.   
  418.   If you use GNU Emacs, but don't know where it is kept on your system,
  419.   start Emacs, then type "C-h v exec-directory RET".  The directory name
  420.   displayed by this will be the full pathname of the installed `etc'
  421.   directory.
  422.   
  423.   Some of these files are available individually via FTP or e-mail, see
  424.   question 20.  All are available in the source distribution.
  425.   
  426. 5:   What are FSF, LPF, OSF, GNU, RMS, FTP, and GPL?
  427.   
  428.   FSF == Free Software Foundation
  429.   LPF == League for Programming Freedom
  430.   OSF == Open Software Foundation
  431.   GNU == GNU's Not Unix
  432.   RMS == Richard Matthew Stallman
  433.   FTP == File Transfer Protocol
  434.   GPL == GNU General Public Licence
  435.   
  436.   NOTE: Avoid confusing the FSF, the LPF, and the OSF.  The LPF opposes
  437.   look-and-feel copyrights and software patents.  The FSF aims to make high
  438.   quality free software available for everyone.  The OSF is a commercial
  439.   organization which wants to provide an alternative, standardized version
  440.   of Unix not controlled by AT&T.
  441.   
  442.   NOTE: The word "free" in the title of the Free Software Foundation refers
  443.   to "freedom", not "zero dollars".  Anyone can charge any price for
  444.   GPL-covered software that they want to.  However, in practice, the freedom
  445.   enforced by the GPL leads to low prices, because you can always get the
  446.   software for less money from someone else, because everyone has the right
  447.   to resell or give away GPL-covered software.
  448.   
  449.  
  450.  
  451. General Questions
  452.  
  453. 6:   What is the LPF and why should I join it?
  454.   
  455.   The LPF opposes the expanding danger of software patents and look-and-feel
  456.   copyrights.  To get more information, feel free to contact the LPF via
  457.   e-mail or otherwise.  {You may also contact me, jbw@cs.bu.edu; I will be
  458.   happy to talk with you about the LPF.}  Here is the contact information:
  459.   
  460.     E-mail address: league@prep.ai.mit.edu
  461.     Phone number: (617) 243-4091
  462.     Postal address:
  463.       League for Programming Freedom
  464.       1 Kendall Square, Number 143
  465.       Post Office Box 9171
  466.       Cambridge, MA 02139, USA
  467.   
  468.   Papers describing the LPF's views are available on the internet and also
  469.   from the LPF:
  470.   
  471.     Anonymous FTP:
  472.       /prep.ai.mit.edu:/pub/lpf/
  473.       /archive.cis.ohio-state.edu:pub/lpf/
  474.     Anonymous UUCP:
  475.       osu-cis!~/lpf/*
  476.   
  477. 7:   What is the real legal meaning of the GNU copyleft?
  478.   
  479.   The real legal meaning of the GNU General Public Licence (copyleft) is
  480.   however it is interpreted by a judge.  There has never been a copyright
  481.   infringment case involving the GPL to set any precedents.  Please take any
  482.   discussion regarding this issue to the newsgroup gnu.misc.discuss, which
  483.   was created to hold the extensive flame wars on the subject.
  484.   
  485.   RMS writes:
  486.   
  487.     The legal meaning of the GNU copyleft is less important than the spirit,
  488.     which is that Emacs is a free software project and that work pertaining
  489.     to Emacs should also be free software.  "Free" means that all users have
  490.     the freedom to study, share, change and improve Emacs.  To make sure
  491.     everyone has this freedom, pass along source code when you distribute
  492.     any version of Emacs or a related program, and give the recipients the
  493.     same freedom that you enjoyed.
  494.   
  495. 8:   What are appropriate messages for gnu.emacs.help, gnu.emacs.bug,
  496.  comp.emacs, etc.?
  497.   
  498.   The file etc/MAILINGLISTS discusses the purpose of each GNU mailing-list.
  499.   (See question 20 on how to get a copy.)  For those which are gatewayed
  500.   with newsgroups, it lists both the newsgroup name and the mailing list
  501.   address.
  502.   
  503.   comp.emacs is for discussion of Emacs programs in general.  This
  504.   includes GNU Emacs along with various other implementations like JOVE,
  505.   MicroEmacs, Freemacs, MG, Unipress, CCA, Epsilon, etc.
  506.   
  507.   Many people post GNU Emacs questions to comp.emacs because they don't
  508.   receive any of the gnu.* newsgroups.  Arguments have been made both for
  509.   and against posting GNU-Emacs-specific material to comp.emacs.  You have
  510.   to decide for yourself.
  511.   
  512.   Messages advocating "non-free" software are considered unacceptable on any
  513.   of the gnu.* newsgroups except for gnu.misc.discuss, which was created to
  514.   hold the extensive flame-wars on the subject.  "non-free" software
  515.   includes any software for which the end user can't freely modify the
  516.   source code and exchange enhancements.  Be careful to remove the gnu.*
  517.   groups from the `Newsgroups:' line when posting a followup that recommends
  518.   such software.
  519.   
  520.   gnu.emacs.bug is a place where bug reports appear, but avoid posting bug
  521.   reports to this newsgroup, instead see question 10.
  522.   
  523. 9:   Where can I get old postings to gnu.emacs.help and other GNU groups?
  524.   
  525.   The FSF has maintained archives of all of the GNU mailing lists for many
  526.   years, although there may be some unintentional gaps in coverage.  The
  527.   archive is not particularly well organized or easy to retrieve individual
  528.   postings from, but pretty much everything is there.
  529.   
  530.     Anonymous FTP:
  531.       /prep.ai.mit.edu:/pub/gnu/MailingListArchives/
  532.   
  533.   There is a WAIS database named `comp.emacs' on wais.oit.unc.edu that
  534.   makes available the last few days of articles in comp.emacs.
  535.   
  536. 10:  Where should I report bugs and other problems with GNU Emacs?
  537.   
  538.   The correct way to report GNU Emacs bugs is by e-mail to
  539.   bug-gnu-emacs@prep.ai.mit.edu.  Anything sent here also appears in the
  540.   newsgroup gnu.emacs.bug, but please use e-mail instead of news to submit
  541.   the bug report.  This way a reliable return address is available so you
  542.   can be contacted for further details.
  543.   
  544.   RMS explains:
  545.   
  546.     Sending bug reports to help-gnu-emacs (which has the effect of posting
  547.     on gnu.emacs.help) is undesirable because it takes the time of an
  548.     unnecessarily large group of people, most of whom are just users and
  549.     have no idea how to fix these problem.  bug-gnu-emacs reaches a much
  550.     smaller group of people who are more likely to know what to do and have
  551.     expressed a wish to receive more messages about Emacs than the others.
  552.   
  553.   However, RMS says there are circumstances when it is okay to post to
  554.   gnu.emacs.help:
  555.   
  556.     If you have reported a bug and you don't hear about a possible fix, then
  557.     after a suitable delay (such as a week) it is okay to post on
  558.     gnu.emacs.help asking if anyone can help you.
  559.   
  560.   If you are unsure whether you have a bug, RMS describes how to tell:
  561.   
  562.     ... if Emacs crashes, that is a bug.  If Emacs gets compilation errors
  563.     while building, that is a bug.  If Emacs crashes while building, that is
  564.     a bug.  If Lisp code does not do what the documentation says it does,
  565.     that is a bug.
  566.   
  567. 11:  How do I unsubscribe to this mailing list?
  568.   
  569.   If you are receiving a GNU mailing list named `XXX', you might be able
  570.   to unsubscribe to it by sending a request to the address
  571.   `XXX-request@prep.ai.mit.edu'.  However, this will not work if you are
  572.   not listed on the main mailing list, but instead recieve the mail from a
  573.   distribution point.  In that case, you will have to track down at which
  574.   distribution point you are listed.  Inspecting the `Received:' headers
  575.   on the mail messages may help, along with liberal use of the `EXPN' or
  576.   `VRFY' sendmail commands through `telnet <site-address> smtp'.  Ask your
  577.   postmaster for help.
  578.   
  579. 12:  What is the current address of the FSF?
  580.   
  581.   E-mail address: gnu@prep.ai.mit.edu
  582.   Phone number: (617) 876-3296
  583.   Postal address:
  584.     Free Software Foundation, Inc.
  585.     675 Massachusetts Avenue
  586.     Cambridge, MA 02139, USA
  587.   
  588.  
  589.  
  590. On-line Help, Printed Manuals, Other Sources of Help
  591.  
  592. 13:  I'm just starting GNU Emacs; how do I do basic editing?
  593.   
  594.   Type "C-h t" to invoke the self-paced tutorial.  Typing just C-h is
  595.   how to enter the help system.
  596.   
  597.   WARNING: Your system administrator may have changed C-h to act like DEL to
  598.   deal local keyboards.  You can use M-x help-for-help instead to invoke
  599.   help.  To discover what key (if any) invokes help on your system, type
  600.   "M-x where-is RET help-for-help RET".  This will print a comma-separated
  601.   list of key sequences in the echo area.  Ignore the last character in each
  602.   key sequence listed.  Each of the resulting key sequences invokes help.
  603.   
  604.   NOTE: Emacs's help facility works best if help is invoked by a single key
  605.   whose value should be stored in the variable help-char.  Andrew
  606.   Arensburger <arensb@kong.gsfc.nasa.gov> wrote a patch that allows the help
  607.   facility to work properly when invoked by multiple character sequences.
  608.   
  609. 14:  How do I find out how to do something in GNU Emacs?
  610.   
  611.   There are several methods for finding out how to do things in Emacs.
  612.   
  613.   * The complete text of the Emacs manual is available online via the Info
  614.     hypertext reader.  Type "C-h i" to invoke Info.
  615.   
  616.   * You can order a hardcopy of the manual from the FSF.  See question 15.
  617.   
  618.   * You can get a printed reference card listing commands and keys to invoke
  619.     them.  You can order one from the FSF for $1 (or 10 for $5), or you can
  620.     print your own from the etc/refcard.tex file in the Emacs distribution.
  621.     {Are PostScript versions of this available for FTP?}
  622.   
  623.   * You can list all of the commands whose names contain a certain word
  624.     (actually which match a regular expression) using "C-h a"
  625.     (M-x command-apropos).
  626.   
  627.   * You can list all of the functions and variables whose names contain a
  628.     certain word using M-x apropos.
  629.   
  630.   * There are many other commands in Emacs for getting help and information.
  631.     To get a list of these commands, type "C-h C-h C-h".
  632.   
  633.   NOTE: You may find that command-apropos and apropos are extremely slow
  634.   on your system.  This will be fixed in Emacs 19.  If you can't wait that
  635.   long, there is a fast-apropos.el file available in the Emacs Lisp
  636.   Archive (see question 89) that contains the fix.
  637.   
  638. 15:  How do I get a printed copy of the GNU Emacs manual?
  639.   
  640.   You can order a printed copy of the GNU Emacs manual from the FSF for
  641.   $20.  For 6 or more manuals the price is $13 each.  The price may be
  642.   tax-deductible as a business expense.
  643.   
  644.   The full TeX source for the manual also comes in the `man' directory of
  645.   the Emacs distribution, if you're daring enough to try to print out this
  646.   300 page manual yourself (see question 18).
  647.   
  648.   If you absolutely have to print your own copy, and you don't have TeX, you
  649.   can get a PostScript version via anonymous FTP:
  650.   
  651.     /cs.ubc.ca:pub/archive/gnu/manuals_ps/emacs-18.57.ps.Z                   !
  652.   
  653.   which site requests that you please CONFINE ANY MAJOR FTPING TO LATE
  654.   EVENINGS OR EARLY MORNINGS OUR TIME (pacific time zone, GMT-8)).  A DVI
  655.   version is also available via FTP:
  656.   
  657.     /prep.ai.mit.edu:pub/gnu/emacs-manual-6.0.dvi.Z
  658.   
  659.   If you don't have TeX you can convert the Texinfo sources into
  660.   {t,n,ps}roff format with the `texi2roff' program, which is available via
  661.   anonymous FTP:
  662.   
  663.     /archive.cis.ohio-state.edu:pub/gnu/texi2roff/texi2roff.shar.Z
  664.   
  665.   See also question 14 for how to view the manual online.
  666.   
  667. 16:  Where can I get documentation on GNU Emacs Lisp?
  668.   
  669.   Within Emacs, you can type "C-h f" to get the documentation for a
  670.   function, "C-h v" for a variable.
  671.   
  672.   For more information, obtain the GNU Emacs Lisp Reference Manual for Emacs
  673.   18 under Unix.  It is available from the FSF for $50 (or 5 for $200).  The
  674.   latest revision available for FTP is edition 1.03 dated 28 January 1991.
  675.   
  676.   For online use, a set of pregenerated Info files is available with the
  677.   Texinfo source for the Emacs Lisp manual via anonymous FTP:
  678.   
  679.     /archive.cis.ohio-state.edu:pub/gnu/emacs/
  680.     /prep.ai.mit.edu:pub/gnu/elisp-manual-1.03.tar.Z
  681.   
  682.   (You can also create the Info files from the Texinfo source.)  See
  683.   question 17 for details on how to install these files online.
  684.   
  685.   If you are daring enough to try to print this 550 page manual out
  686.   yourself, for instructions see question 18.
  687.   
  688.   Also, as a popular USENET saying goes, "Use the Force, Read the Source".
  689.   
  690. 17:  How do I install a piece of Texinfo documentation?
  691.   
  692.   First create Info files from the Texinfo files with the `makeinfo'
  693.   program.  makeinfo is available as part of the latest Texinfo package:
  694.   
  695.     /prep.ai.mit.edu:pub/gnu/texinfo-2.14.tar.Z
  696.   
  697.   For information about the Texinfo format, read the Texinfo manual which
  698.   comes with Emacs.  This manual also comes installed in Info format, so you
  699.   can read it online.
  700.   
  701.   Neither texinfo-format-buffer nor the makeinfo program install the
  702.   resulting Info files in Emacs's Info tree.  To install Info files:
  703.   
  704.   1. Move the files to the `info' directory in the installed Emacs
  705.      distribution.  See question 4 if you don't know where that
  706.      is.
  707.   
  708.   2. Edit the file info/dir in the installed Emacs distribution, and add a
  709.      line for the top level node in the Info package that you are
  710.      installing.  Follow the examples are already in this file.  The format
  711.      is:
  712.   
  713.        * Topic: (relative-pathname).  Short description of topic.
  714.   
  715.   If you want to install Info files and you don't have the necessary
  716.   privileges, you have several options:
  717.   
  718.   * Info files don't actually need to be installed before being used.  You
  719.     can feed a file name to the Info-goto-node command (invoked by pressing
  720.     "g" in Info mode) by typing the name of the file in parentheses.  This
  721.     goes to the node named `Top' in that file.  For example, to view a Info
  722.     file named `XXX' in your home directory, you can type this:
  723.   
  724.       C-h i g (~/XXX) RET
  725.   
  726.   * You can create your own Info directory.  You can tell Emacs where the
  727.     Info directory is by setting the value of the variable Info-directory
  728.     to its pathname.  For example, to use a private Info directory which
  729.     is a subdirectory of your home directory named `Info', you could do
  730.     this:
  731.   
  732.       (setq Info-directory (expand-file-name "~/Info"))
  733.   
  734.     You will need a top-level Info file named `dir' in this directory.
  735.     You can include the system-wide Info directory in your private Info
  736.     directory with symbolic links or by copying it.
  737.   
  738.   * You can use an enhanced version of lisp/info.el that handles multiple
  739.     Info directories.  Then you can more easily use a mix of private and
  740.     shared Info files.  Dave Gillespie <daveg@synaptics.com,
  741.     daveg@csvax.cs.caltech.edu> has written one such enhancement and I
  742.     believe there are others.  Dave's info.el also handles compressed Info
  743.     files.
  744.   
  745.     Anonymous FTP:
  746.       /archive.cis.ohio-state.edu:modes/info.el.Z
  747.       /ftp.uu.net:languages/emacs-lisp/modes/info.el.Z                       !
  748.   
  749.     According to Jay Bourland <jayb@math.stanford.edu>, a version of Dave's
  750.     info.el comes with `xinfo' (see question 19).
  751.   
  752. 18:  How do I print a Texinfo file?
  753.   
  754.   NOTE: You can't get nice printed output from Info files; you must still
  755.   have the original Texinfo source file for the manual you want to print.
  756.   
  757.   1. Make sure the first line of the Texinfo file looks like this:
  758.   
  759.        \input texinfo
  760.   
  761.      You may need to alter `texinfo' to the full pathname of the
  762.      texinfo.tex file, which comes with Emacs as man/texinfo.tex (or copy
  763.      or link it into the current directory).
  764.   
  765.   2. tex XXX.texinfo
  766.   
  767.   3. texindex XXX.??
  768.   
  769.      The `texindex' program comes with Emacs as man/texindex.c.
  770.   
  771.   4. tex XXX.texinfo
  772.   
  773.   5. Print the DVI file XXX.dvi in the normal way for printing DVI files
  774.      at your site.
  775.   
  776.   To get more general instructions, retrieve the latest Texinfo package
  777.   mentioned in question 17.
  778.   
  779. 19:  Can I view Info files without using GNU Emacs?
  780.   
  781.   Yes, the `info', `xinfo', and `ivinfo' programs do this.  info uses
  782.   curses, xinfo uses standard X11 libraries, and ivinfo uses InterViews.
  783.   You can get info as part of the latest Texinfo package (see question
  784.   17).  xinfo is available separately:
  785.   
  786.     /prep.ai.mit.edu:pub/gnu/xinfo-1.01.01.tar.Z
  787.     /export.lcs.mit.edu:
  788.   
  789.   ivinfo is available in a comp.sources.misc archive or from Tom Horsley
  790.   <tom@ssd.csd.harris.com>.  For ivinfo, you need Stanford's InterViews C++
  791.   X library, available via anonymous FTP (interviews.stanford.edu).
  792.   
  793. 20:  What informational files are available for GNU Emacs?
  794.   
  795.   This isn't a frequently asked question, but it should be!  A variety of
  796.   informational files about GNU Emacs and relevant aspects of the GNU
  797.   project are available for you to read.
  798.   
  799.   The following files are available in the `etc' directory of the GNU
  800.   Emacs distribution, and also the latest versions are available
  801.   individually via anonymous FTP (prep.ai.mit.edu:/pub/gnu/GNUinfo/):
  802.   
  803.     APPLE -- Why the FSF doen't support GNU Emacs on Apple computers
  804.     DISTRIB -- GNU Emacs Availability Information,
  805.       including the popular "Free Software Foundation Order Form"
  806.     FTP -- How to get GNU Software by Internet FTP or by UUCP
  807.     GNU -- The GNU Manifesto
  808.     INTERVIEW -- Richard Stallman discusses his public-domain
  809.                UNIX-compatible software system
  810.                   with BYTE editors
  811.     MACHINES -- Status of GNU Emacs on Various Machines and Systems
  812.     MAILINGLISTS -- GNU Project Electronic Mailing Lists
  813.     SERVICE -- GNU Service Directory
  814.     SUN-SUPPORT -- including "Using Emacstool with GNU Emacs"
  815.   
  816.   These files are available in the `etc' directory of the GNU Emacs
  817.   distribution:
  818.   
  819.     DIFF -- Differences between GNU Emacs and Twenex Emacs
  820.     CCADIFF -- Differences between GNU Emacs and CCA Emacs
  821.     GOSDIFF -- Differences between GNU Emacs and Gosling (Unipress??) Emacs
  822.     COPYING -- GNU Emacs General Public License
  823.     NEWS -- GNU Emacs News, a history of user-visible changes
  824.     LPF -- Why you should join the League for Programming Freedom
  825.     FAQ -- GNU Emacs Frequently Asked Questions (You're reading it)
  826.     OPTIONS -- a complete explanation of startup option handling
  827.   
  828.   These files are available via anonymous FTP (prep.ai.mit.edu:/pub/gnu/):
  829.   
  830.     tasks -- GNU Task List
  831.     standards.text -- GNU Coding Standards
  832.   
  833.   In addition, all of the above files are available directly from the FSF
  834.   via e-mail.  Of course, please try to get them from a local source
  835.   first.
  836.   
  837.   These additional files are available from the FSF via e-mail:
  838.   
  839.   * GNU's Bulletin, June, 1991 -- this file includes:
  840.       GNU'S Who
  841.       What Is the Free Software Foundation?
  842.       What Is Copyleft?
  843.       A Small Way to Help Free Software
  844.       GNUs Flashes (important recent developments for project GNU)
  845.       Free Software Support (and how to get it!)
  846.       Copyrighted Programming Languages
  847.       AT&T Threatens Users of X Windows (and other software patent threats)
  848.       Project Gutenberg
  849.       GNU Project Status Report
  850.       GNU in Japan
  851.       GNU Wish List
  852.       Help Keep Government Software Free
  853.       GNU Software Available Now
  854.         Contents of the Emacs Tape
  855.         Contents of the Compiler Tape
  856.         Contents of the X11 Tapes
  857.         VMS Emacs and Compiler Tapes
  858.       GNU Documentation
  859.       How to Get GNU Software
  860.       Free Software for Microcomputers
  861.         GNU Software on Apple computers
  862.         GNU Software on the Amiga
  863.         GNU Software on the Atari
  864.         GNUish MS-DOS project
  865.         Freemacs, an Extensible Editor for MS-DOS
  866.       GNU in Japan
  867.       FSF Order Form
  868.       Thank GNUs
  869.   * Legal issues about contributing code to GNU
  870.   * GNU Project Status Report
  871.   
  872.   A collection of past GNU's Bulletins is available via anonymous FTP:
  873.   
  874.     /ftp.funet.fi:pub/gnu/Bulletins/
  875.   
  876. 21:  Where can I get help in installing GNU Emacs?
  877.   
  878.   Look in etc/SERVICE for names of companies and individuals who will sell
  879.   you this type of service.  An up-to-date version of the SERVICE file is
  880.   available on prep.ai.mit.edu (also see question 20).
  881.   
  882. 22:  Where can I get the latest version of this document (the FAQ list)?
  883.   
  884.   The GNU Emacs FAQ is available in several ways:
  885.   
  886.   * Via USENET.  If you can read news, the FAQ should be available in your
  887.     news spool, in both the gnu.emacs.help and comp.emacs newsgroups.  Every
  888.     news reader of which I know will allow you to read any news article that
  889.     is still in the news spool, even if you have read the article before.
  890.     You may need to read the instructions for your news reader to discover
  891.     how to do this.  In `rn', this command will do this for you at the
  892.     article selection level:
  893.   
  894.       ?GNU Emacs FAQ?rc:m
  895.   
  896.     In GNUS, you should type "C-u G" from the *Subject* buffer or "C-u SPC"
  897.     from the *Newsgroup* buffer to view all articles in a newsgroup.
  898.   
  899.     The FAQ articles' message IDs are:
  900.   
  901.       <GNU-Emacs-FAQ-0.1993.05.04.025218@rice.edu>                           !
  902.       <GNU-Emacs-FAQ-1.1993.05.04.025218@rice.edu>                           !
  903.       <GNU-Emacs-FAQ-2.1993.05.04.025218@rice.edu>                           !
  904.       <GNU-Emacs-FAQ-3.1993.05.04.025218@rice.edu>                           !
  905.       <GNU-Emacs-FAQ-4.1993.05.04.025218@rice.edu>                           !
  906.       <GNU-Emacs-FAQ-5.1993.05.04.025218@rice.edu>                           !
  907.   
  908.     If you are viewing this in the GNUS *Article* buffer, you can move point
  909.     within one of the above message IDs and type "r" to fetch the referenced
  910.     article.  Type "o" in the *Article* buffer to restore the previous
  911.     contents.  If this text is not in the GNUS *Article* buffer, use M-r
  912.     from the *Subject* buffer instead.
  913.   
  914.     If the FAQ articles have expired and been deleted from your news spool,
  915.     it might (or might not) do some good to complain to your news
  916.     administrator, because the most recent FAQ should not expire before
  917.     July 3, 1993.                                                            !
  918.   
  919.   * Via anonymous FTP.  You can fetch the FAQ articles via anonymous FTP
  920.   
  921.       /rtfm.mit.edu:pub/usenet/news.answers/GNU-Emacs-FAQ/ part*
  922.   
  923.   * Via e-mail.  You can send the following magical incantation in the body
  924.     of a message to mail-server@rtfm.mit.edu:
  925.   
  926.       send usenet/news.answers/GNU-Emacs-FAQ/part0
  927.       send usenet/news.answers/GNU-Emacs-FAQ/part1
  928.       send usenet/news.answers/GNU-Emacs-FAQ/part2
  929.       send usenet/news.answers/GNU-Emacs-FAQ/part3
  930.       send usenet/news.answers/GNU-Emacs-FAQ/part4
  931.       send usenet/news.answers/GNU-Emacs-FAQ/part5
  932.   
  933.   * Via WAIS.  The GNU Emacs FAQ is available via WAIS indexed on a
  934.     per-question basis from the `faq' database on bigbird.bu.edu on the
  935.     non-standard IP port number of 2210.  This is probably the best way to
  936.     find out if there is something in the FAQ related to your question.  I
  937.     use this myself to answer questions I see posted on gnu.emacs.help.
  938.   
  939.     The articles of the GNU Emacs FAQ are also available from the `usenet'
  940.     database on rtfm.mit.edu (on the standard IP port: 210), along with a
  941.     lot of other FAQ articles.  However, these are all indexed at the whole
  942.     article level instead of at the question level.  This is a better place
  943.     to look if you want to fetch the entire FAQ.
  944.   
  945.   * In the GNU Emacs distribution.  Since GNU Emacs 18.56, the latest
  946.     available version of the FAQ at the time of release has been part of the
  947.     GNU Emacs distribution as file etc/FAQ.  18.59 is the latest version,
  948.     and it was released in October 1992.
  949.   
  950.   * There is an old version of the FAQ list available for FTP in the GNU
  951.     archives at MIT:
  952.   
  953.       /prep.ai.mit.edu:pub/gnu/GNUinfo/FAQ.emacs
  954.   
  955.   * As the very last resort, you can e-mail a request to
  956.     gnu-emacs-faq-maintainers@bigbird.bu.edu.  Don't do this unless you have
  957.     made a serious effort to obtain the FAQ list via one of the methods
  958.     listed above.
  959.   
  960.  
  961.  
  962. Status of Emacs
  963.  
  964. 23:  Where does the name "Emacs" come from?
  965.   
  966.   Emacs originally was an acronym for Editor MACroS.  RMS says he "picked
  967.   the name `Emacs' because `E' was not in use as an abbreviation on ITS at
  968.   the time.".  The first Emacs was a set of macros written in 1976 at MIT by
  969.   RMS for the editor TECO (Text Editor and COrrector (originally Tape Editor
  970.   and COrrector)) under ITS on a PDP-10.  RMS had already extended TECO with
  971.   a "real-time" full screen mode with active keys.  Emacs was started by Guy
  972.   Steele <gls@think.com> as a project to unify the many divergent TECO
  973.   command sets and keybindings at MIT.
  974.   
  975.   Many people have told me that TECO code looks a lot like line noise.  See
  976.   alt.lang.teco if you are interested.  I think someone has written a TECO
  977.    implementation in Emacs Lisp.  It would be an interesting project to run
  978.   the original TECO Emacs inside of GNU Emacs.
  979.   
  980. 24:  What is the latest version of GNU Emacs?
  981.   
  982.   GNU Emacs 18.59 is the current version.  Fixes from 18.57 include better
  983.   mail address parsing, an X visual bell speedup, a call-process
  984.   enhancement, a regexp matching change, the ability to apply a numeric
  985.   argument to a self-inserting digit, getting X resource values from the
  986.   RESOURCE_MANAGER property, more reliable shell mode job control, and a
  987.   change to copy-keymap.  Also, support has been added for many new system
  988.   types.  Fixes from 18.55 include the removal of arbitrary limits on the
  989.   undo facility.
  990.   
  991.   According to the January 1992 GNU's Bulletin, "Emacs 18 maintenance
  992.   continues for simple bug fixes.".
  993.   
  994.   To visit a file with information about what has changed in recent
  995.   versions, type "C-h n".
  996.   
  997. 25:  When will GNU Emacs 19 be available?
  998.   
  999.   Richard Stallman recently (February 19, 1993) posted in gnu.emacs.help     !
  1000.   the following:                                                             !
  1001.                                                                              !
  1002.     People should keep in mind that the successor of Emacs 18 does not       !
  1003.     come from Lucid.  Its is GNU Emacs 19.  I still can't say exactly when   !
  1004.     public release is going to be, but we are about to start testing at a    !
  1005.     number of sites.                                                         !
  1006.                                                                              !
  1007.     GNU Emacs 19 will support a broad spectrum of machines, like Emacs       !
  1008.     18.  Ensuring this is the purpose of the testing we are about to do.     !
  1009.                                                                              !
  1010.     (Please don't volunteer; we have enough pretesters, and if more people   !
  1011.     offer, dealing with those messages will slow things down.)               !
  1012.                                                                              !
  1013.     Once we make sure it is indeed working reliably on various different     !
  1014.     systems, we will have a public beta test release.                        !
  1015.                                                                              !
  1016.     Emacs 19 does support adding properties to ranges of text, and using     !
  1017.     these to switch fonts.  In the future, the Epoch people will help        !
  1018.     merge support for variable-width fonts.                                  !
  1019.                                                                              !
  1020.     Meanwhile, I have almost finished updating the Emacs Lisp manual.  Its   !
  1021.     next edition will describe Emacs 19.  There will be an announcement      !
  1022.     when we know when this edition will be available.                        !
  1023.  
  1024.   Lucid has released Lucid GNU Emacs 19.6, which is based on an early        !
  1025.   unreleased version of GNU Emacs 19.  This will be similar to Emacs 19 when
  1026.   it finally arrives, but they are not the same.  See question 121.
  1027.   
  1028.   Work has begun on features for Emacs 20.
  1029.   
  1030. 26:  What is different about GNU Emacs 19?
  1031.   
  1032.   From the January 1992 GNU's Bulletin:
  1033.   
  1034.     Version 19 will enter beta test late this year.  Among its new features
  1035.     are: before and after change hooks, source-level debugging of Emacs Lisp
  1036.     programs, X selection processing (including clipboard selections),
  1037.     scrollbars, support for European character sets, floating point numbers,
  1038.     per-buffer mouse commands, X resource manager interfacing,
  1039.     mouse-tracking, Lisp-level binding of function keys, multiple X windows
  1040.     (`screens' to Emacs), a new input system, and buffer allocation, which
  1041.     uses a new mechanism capable of returning storage to the system when a
  1042.     buffer is killed.
  1043.   
  1044.     The input stream is now a sequence of Lisp objects, instead of a
  1045.     sequence of characters.  This allows a reasonable representation for
  1046.     mouse clicks, function keys, menu selections, etc.
  1047.   
  1048.     Thanks go to Alan Carroll and the people who worked on Epoch for
  1049.     generating initial feedback to a multi-windowed Emacs, and to Eric
  1050.     Raymond for help in polishing the Emacs 19 Lisp libraries.
  1051.   
  1052.   The June 1991 GNU's bulletin had this to say about future plans for Emacs:
  1053.   
  1054.     Features being considered for later releases of Emacs include:
  1055.     associating property lists with regions of text in a buffer; multiple
  1056.     fonts, color, and pixmaps defined by those properties; different
  1057.     visibility conditions for the regions, and for various windows showing
  1058.     one buffer; hooks to be run if point or mouse moves outside a certain
  1059.     range; incrementally saving undo history in a file; static menu bars;
  1060.     and better pop-up menus.
  1061.   
  1062.   Mention of this feature disappeared in the January 1992 GNU's bulletin:
  1063.   
  1064.     Emacs 19 supports two styles of multiple windows, one with a separate
  1065.     screen for the minibuffer, and another with a minibuffer attached to
  1066.     each screen.
  1067.   
  1068.   Mention of these two proposed features disappeared in the January 1991
  1069.   GNU's bulletin:
  1070.   
  1071.   * Incremental syntax analysis for various programming languages (Leif).
  1072.   * A more sophisticated emacsclient/server model, which would provide
  1073.     network transparent Emacs widget functionality.
  1074.   
  1075. 27:  What variants of GNU Emacs exist?
  1076.   
  1077.   * Nemacs (Nihongo Emacs), which can handle Japanese text, is derived from
  1078.     GNU Emacs 18.55.  See question 149.
  1079.   
  1080.   * Demacs, which can run under MS-DOS on 386 machines, is derived from
  1081.     Nemacs.  See question 122.
  1082.   
  1083.   * Epoch, which has better X support, is derived from GNU Emacs 18.58.
  1084.     See question 120 and 92.
  1085.   
  1086.   * Nepoch (Nihongo Epoch), which can handle Japanese text, is derived from
  1087.     Epoch.
  1088.   
  1089.   * Mule (the MULtilingual Enhancement of GNU Emacs) can handle many
  1090.     character sets simultaneously.  It is derived from Emacs 18.58.  It is
  1091.     available for FTP:
  1092.   
  1093.       /sh.wide.ad.jp:/JAPAN/mule/
  1094.       /etlport.etl.go.jp:/pub/mule/
  1095.   
  1096.   * Lucid GNU Emacs is derived from an early unreleased version of GNU Emacs
  1097.     19.  See question 121 and 92.
  1098.   
  1099.  
  1100.  
  1101. Common Things People Want To Do 
  1102.  
  1103. 28:  How do I set up a .emacs file properly?
  1104.   
  1105.   See `Init File' in the on-line manual.
  1106.   
  1107.   WARNING: In general, new Emacs users should not have .emacs files, because
  1108.   it causes confusing non-standard behavior.  Then they send questions to
  1109.   help-gnu-emacs asking why Emacs isn't behaving as documented.  :-)
  1110.   
  1111. 29:  How do I debug a .emacs file?
  1112.   
  1113.   First start Emacs with the `-q' command line option.  Then, in the
  1114.   *scratch* buffer, type the following:
  1115.   
  1116.     (setq debug-on-error t) LFD
  1117.     (load-file "~/.emacs") LFD
  1118.   
  1119.   (Type LFD by pressing C-j.)
  1120.   
  1121.   If you have an error in your .emacs file, this will invoke the debugger
  1122.   when the error occurs.  If you don't know how to use the debugger do
  1123.   (setq stack-trace-on-error t) instead.
  1124.   
  1125.   WARNING: this will not discover errors caused by trying to do something
  1126.   that requires the terminal/window-system initialization code to have
  1127.   been loaded.  See question 127.
  1128.   
  1129. 30:  How do I make Emacs display the current line (or column) number?
  1130.   
  1131.   To find out what line of the buffer you are on right now, do "M-x
  1132.   what-line".  Use "M-x goto-line" to go to a specific line.  To find the
  1133.   current column number, type "M-ESC (current-column)".
  1134.   
  1135.   Typing "C-x l" will also tell you what line you are on, provided the
  1136.   buffer isn't separated into "pages" with C-l characters.  In that case, it
  1137.   will only tell you what line of the current "page" you are on.  WARNING:
  1138.   "C-x l" gives the wrong value when point is at the beginning of a line.
  1139.   
  1140.   There is no "correct" way to constantly display the current (or total)
  1141.   line (or column) number on the mode line in Emacs 18, or to display the
  1142.   line numbers next to the lines like vi can.  Emacs is not a line-oriented
  1143.   editor, and really has no idea what "lines" of the buffer are displayed in
  1144.   the window.  It would require a lot of work at the C code level to make
  1145.   Emacs keep track of this.  It would not be that hard to get the column
  1146.   number, but it would still require changes at the C code level.
  1147.   
  1148.   None of the vi emulation modes provide the `set number' capability of vi
  1149.   (as far as I know).
  1150.   
  1151.   Emacs 19 will probably be able to show the line number on the mode-line,
  1152.   but probably very inefficiently.
  1153.   
  1154.   People have written various kludges to display line numbers.  One is
  1155.   `display-line-numbers' by Wayne Mesard <wmesard@tofu.oracle.com,
  1156.   Mesard@bbn.com>.  Look in the Lisp Code Directory.  (See question
  1157.   88.)
  1158.   
  1159. 31:  How do I turn on Abbrevs by default just in mode XXX?
  1160.   
  1161.   Put this in your .emacs file:
  1162.   
  1163.     (condition-case ()
  1164.     (read-abbrev-file nil t)
  1165.       (file-error nil))
  1166.   
  1167.     (setq XXX-mode-hook
  1168.       (function
  1169.        (lambda ()
  1170.          (setq abbrev-mode t))))
  1171.   
  1172. 32:  How do I turn on Auto-Fill mode by default?
  1173.   
  1174.   To turn on Auto-Fill mode just once for one buffer, use "M-x
  1175.   auto-fill-mode".  To turn it on for every buffer in, for example, Text
  1176.   mode, do this:
  1177.   
  1178.     (setq text-mode-hook 'turn-on-auto-fill)
  1179.   
  1180.   If you want Auto-Fill mode on in all major modes, do this:
  1181.   
  1182.     (setq-default auto-fill-hook 'do-auto-fill)
  1183.   
  1184. 33:  How do I make Emacs use a certain major mode for certain files?
  1185.   
  1186.   If you want to use XXX mode for all files which end with the extension
  1187.   `.YYY', this will do it for you:
  1188.   
  1189.     (setq auto-mode-alist (cons '("\\.YYY\\'" . XXX-mode) auto-mode-alist))
  1190.   
  1191.   Otherwise put this somewhere in the first line of any file you want to
  1192.   edit in XXX mode:
  1193.   
  1194.     -*-XXX-*-
  1195.   
  1196. 34:  How do I search for, delete, or replace unprintable (8-bit or control)
  1197.  characters?
  1198.   
  1199.   To search for a single character that appears in the buffer as, for
  1200.   example, `\237', you can type "C-s C-q 2 3 7".  (This assumes the value of
  1201.   search-quote-char is 17 (ie., C-q).)  Searching for ALL unprintable
  1202.   characters is best done with a "regexp" search.  The easiest regexp to use
  1203.   for the unprintable chars is the complement of the regexp for the
  1204.   printable chars.
  1205.   
  1206.   Regexp for the printable chars: [\t\n\r\f -~]
  1207.   
  1208.   Regexp for the unprintable chars: [^\t\n\r\f -~]
  1209.   
  1210.   To type some of these special characters in an interactive argument to
  1211.   isearch-forward-regexp or re-search-forward, you need to use C-q.  (`\t',
  1212.   `\n', `\r', and `\f' stand respectively for TAB, LFD, RET, and C-l.)  So,
  1213.   to search for unprintable characters using re-search-forward:
  1214.   
  1215.     M-x re-search-forward RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET
  1216.   
  1217.   Using isearch-forward-regexp:
  1218.   
  1219.     M-C-s [^ TAB RET C-q RET C-q C-l SPC -~]
  1220.   
  1221.   To delete all unprintable characters, simply use a replace-regexp:
  1222.   
  1223.     M-x replace-regexp RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET RET
  1224.   
  1225.   Replacing is similar to the above.  {I need to write the text for this
  1226.   part of the answer!}
  1227.   
  1228.   Notes:
  1229.   
  1230.   * With isearch, you can type RET to get a quoted LFD (not a quoted RET).
  1231.   
  1232.   * You don't need to quote TAB with either isearch or typing something in
  1233.     the minibuffer.
  1234.   
  1235.   Here are the Emacs Lisp forms of the above regexps:
  1236.   
  1237.     ;; regexp matching all printable characters:
  1238.     "[\t\n\r\f -~]"
  1239.   
  1240.     ;; regexp matching all unprintable characters:
  1241.     "[^\t\n\r\f -~]"
  1242.   
  1243. 35:  How can I highlight a region of text in Emacs?
  1244.   
  1245.   There are ways to get highlighting (reverse video, inverse video) in GNU
  1246.   Emacs 18.59, but either they require patching the C code of Emacs and
  1247.   rebuilding, or they are slow and the highlighting disappears if you scroll
  1248.   or redraw the screen and it can not follow the point.  Howard Gayle's
  1249.   patches for 8-bit output appear to allow highlighting (see question
  1250.   ^8-bit-output).  Another patch for highlighting is by Kenichi Handa
  1251.   <handa@etl.go.jp>.  There is a patch for use with X by Andy Norman
  1252.   <ange@hplb.hpl.hp.com> (and modified for 18.57 by Matthieu Herrb
  1253.   <matthieu@laas.fr>), which is available for FTP:
  1254.   
  1255.     /laas.laas.fr:pub/emacs/patch-X11-18.55
  1256.     /laas.laas.fr:pub/emacs/patch-X11-18.57
  1257.   
  1258.   You can highlight regions in a variety of ways in Epoch and Lucid Emacs.
  1259.   GNU Emacs 19 may not be able to just temporarily highlight a region.
  1260.   
  1261.   Similar comments apply to displaying text in different fonts, except that
  1262.   it is even harder.
  1263.   
  1264. 36:  How do I control Emacs's case-sensitivity when searching/replacing?
  1265.     
  1266.   For searching, the value of the variable case-fold-search determines
  1267.   whether they are case sensitive:
  1268.   
  1269.     (setq case-fold-search nil) ; make searches case sensitive
  1270.     (setq case-fold-search t)   ; make searches case insensitive
  1271.   
  1272.   Similarly, for replacing the variable case-replace determines whether
  1273.   replacements preserve case.
  1274.   
  1275.   To change the case sensitivity just for one major mode, use the major
  1276.   mode's hook.  For example:
  1277.   
  1278.     (setq XXX-mode-hook
  1279.           (function
  1280.        (lambda ()
  1281.          (setq case-fold-search nil))))
  1282.   
  1283. 37:  How do I make Emacs wrap words for me?
  1284.   
  1285.   M-x auto-fill-mode.  The default maximum line width is 74, determined by
  1286.   the variable fill-column.  To find how to turn this on automatically see
  1287.   question 32.
  1288.   
  1289. 38:  Where can I get a better spelling checker for Emacs?
  1290.   
  1291.   Use Ispell.  See question 119.
  1292.   
  1293. 39:  How can I spell-check TeX or *roff documents?
  1294.   
  1295.   If you want to spell-check TeX or *roff documents with Ispell, you need to
  1296.   arrange for a filter program that understands how to strip TeX or *roff
  1297.   formatting commands to be run.  In the TeX distribution, there are several
  1298.   different programs named `detex', all with incompatible options, and a
  1299.   very old pair of programs named `detex' and `delatex', which should
  1300.   probably be avoided.  The most useful one for Ispell is `detex' by Daniel
  1301.   Trinkle.  A more recent version is available via FTP:
  1302.   
  1303.     /arthur.cs.purdue.edu:pub/trinkle/detex-2.4.tar
  1304.   
  1305.   Raphael Cerf <cerf@clipper.ens.fr> recently released a program for this
  1306.   named `xetal':
  1307.   
  1308.     /spi.ens.fr:pub/unix/tex/
  1309.   
  1310.   There is a program that comes with Unix named `deroff' for stripping
  1311.   formatting commands from *roff files.
  1312.   
  1313.   Here is an example of code you can put in a .emacs file to use these
  1314.   programs:
  1315.   
  1316.     ;; Based on suggestions by David G. Grubbs <dgg@ksr.com> and Paul Palmer
  1317.     ;; <palmerp@math.orst.edu>.
  1318.   
  1319.     ;; Assuming the use of detex 2.3 by Daniel Trinkle:
  1320.     ;; -w means one word per line.
  1321.     ;; -n means don't expand \input or \include commands.
  1322.     ;; -l means force LaTeX mode.
  1323.   
  1324.     (require 'ispell) ; for the make-variable-buffer-local statements
  1325.     (setq plain-TeX-mode-hook
  1326.       (function
  1327.        (lambda ()
  1328.          (setq ispell-filter-hook "detex")
  1329.              (setq ispell-filter-hook-args '("-nw")))))
  1330.     (setq LaTeX-mode-hook
  1331.       (function
  1332.        (lambda ()
  1333.          (setq ispell-filter-hook "detex")
  1334.              (setq ispell-filter-hook-args '("-lnw")))))
  1335.     (setq nroff-mode-hook
  1336.       (function
  1337.        (lambda ()
  1338.          (setq ispell-filter-hook "deroff")
  1339.              (setq ispell-filter-hook-args '("-w")))))
  1340.   
  1341.   You will have to adjust the arguments for programs other than Trinkle's
  1342.   detex or for other versions of deroff.  Experiment running the command
  1343.   from the shell to find the correct options.  If you don't have a filter
  1344.   that knows how to output one word per line, you must pipe its output
  1345.   through another filter to break up the output.
  1346.   
  1347. 40:  How do I change load-path?
  1348.   
  1349.   In general, you should only *add* to the load-path.  You can add
  1350.   directory /XXX/YYY to the load path like this:
  1351.   
  1352.     (setq load-path (append load-path '("/XXX/YYY/")))
  1353.   
  1354.   To do this relative to your home directory:
  1355.   
  1356.     (setq load-path (append load-path (list (expand-file-name "~/YYY/"))))
  1357.   
  1358. 41:  How do I use an already running Emacs from another window?
  1359.   
  1360.   The `emacsclient' program is for editing a file using an already running
  1361.   Emacs rather than starting up a new Emacs.  It does this by sending a
  1362.   request to the already running Emacs, which must be expecting the request.
  1363.   
  1364.   * Setup
  1365.   
  1366.     Emacs must have executed the `server-start' function for emacsclient to
  1367.     work.  This can be done either by a command line option:
  1368.   
  1369.       emacs -f server-start
  1370.   
  1371.     or by invoking server-start from the .emacs file:
  1372.   
  1373.       (if (some conditions are met) (server-start))
  1374.   
  1375.     When this is done, Emacs starts a subprocess running a program called
  1376.     `server'.  `server' creates a Unix domain socket in the user's home
  1377.     directory named `.emacs_server'.
  1378.   
  1379.     To get your news reader, mail reader, etc., to invoke emacsclient, try
  1380.     setting the environment variable EDITOR (or sometimes VISUAL) to the
  1381.     value `emacsclient'.  You may have to specify the full pathname of the
  1382.     emacsclient program instead.  Examples:
  1383.   
  1384.       # csh commands:
  1385.       setenv EDITOR emacsclient
  1386.       setenv EDITOR /usr/local/emacs/etc/emacsclient  # using full pathname
  1387.   
  1388.       # sh command:
  1389.       EDITOR=emacsclient export EDITOR
  1390.   
  1391.   * Normal use
  1392.   
  1393.     When emacsclient is run, it connects to the `.emacs_server' socket and
  1394.     passes its command line options to `server'.  When `server' receives
  1395.     these requests, it sends this information on the the Emacs process,
  1396.     which at the next opportunity will visit the files specified.  (Line
  1397.     numbers can be specified just like with Emacs.)  The user will have to
  1398.     switch to the Emacs window by hand.  When the user is done editing a
  1399.     file, the user can type "C-x #" to indicate this.  This will switch to
  1400.     another buffer created at the request of emacsclient if there are any.
  1401.     When "C-x #" has been invoked on all of the files that the emacsclient
  1402.     requested to be edited, Emacs will send notification of this to `server'
  1403.     which will pass this on to the emacsclient, which will then exit.
  1404.   
  1405.   NOTE: `emacsclient' and `server' must be running on machines which share
  1406.   the same filesystem for this to work.  The pathnames that emacsclient
  1407.   specifies should be correct for the filesystem that the Emacs process
  1408.   sees.  The Emacs process should not be suspended at the time emacsclient
  1409.   is invoked.  emacsclient should either be invoked from another X window or
  1410.   from a shell window inside Emacs itself.
  1411.   
  1412.   There is an enhanced version of emacsclient/server called `gnuserv' by
  1413.   Andy Norman <ange@hplb.hpl.hp.com> which is available in the Emacs Lisp
  1414.   Archive.  gnuserv uses Internet domain sockets, so it can work across most
  1415.   network connections.  It also supports the execution of arbitrary Emacs
  1416.   Lisp forms and also does not require the client program to wait for
  1417.   completion.  It is available via anonymous FTP (Emacs Lisp Archive:
  1418.   packages/gnuserv.shar).
  1419.   
  1420. 42:  How do I make Emacs recognize my compiler's funny error messages?
  1421.   
  1422.   Write a program which runs the compiler as a child and filters its output,
  1423.   rearranging as necessary.  Install with same name as compiler somewhere in
  1424.   path.
  1425.   
  1426.   Keith Moore <moore@cs.utk.edu> wrote one such for a C compiler under AIX.
  1427.   Available via FTP:
  1428.   
  1429.     /cs.utk.edu:readonly/aixcc.lex
  1430.   
  1431.   Jim Frost <jimf@saber.com> wrote another for the IBM xlc compiler on the
  1432.   RS/6000.  (I don't know if these are both for the same compiler.)
  1433.   Johnathan Vail <vail@tegra.COM> wrote something for a High C compiler
  1434.   (`hc', which is one of the compilers on the RS/6000, although I think
  1435.   Johnathan wrote his program for hc on a different computer).
  1436.   
  1437. 43:  How do I indent switch statements like this?
  1438.   
  1439.   Many people want to indent their switch statements like this:
  1440.   
  1441.     f()
  1442.     {
  1443.       switch(x) {
  1444.         case A:
  1445.           x1;
  1446.           break;
  1447.         case B:
  1448.           x2;
  1449.           break;
  1450.         default:
  1451.           x3;
  1452.       }
  1453.     }
  1454.   
  1455.   I don't believe there is any way to do this exactly without modifying the
  1456.   Lisp code in c-mode.el.  You can set c-indent-level to 4 and
  1457.   c-label-offset to -2, but this has bad effects elsewhere.  {Anyone have a
  1458.   solution?}
  1459.   
  1460. 44:  How can I make Emacs automatically scroll horizontally?
  1461.   
  1462.   There is no completely correct way of doing this that does not involve
  1463.   rewriting all commands or writing your own top-level command loop (not a
  1464.   completely bad idea).  Wayne Mesard <wmesard@pescadero.stanford.edu> has
  1465.   written a particularly advanced kludge called `hscroll.el' that checks
  1466.   once a second to make sure point is visible.
  1467.   
  1468. 45:  How do I make Emacs "typeover" or "overwrite" instead of inserting?
  1469.   
  1470.   M-x overwrite-mode (a minor mode).
  1471.   
  1472. 46:  How do I stop Emacs from beeping on a terminal?
  1473.   
  1474.   Martin R. Frank <martin@cc.gatech.edu> writes:
  1475.   
  1476.     Tell Emacs to use the 'visible bell' instead of the audible bell, and
  1477.     set the visible bell to nothing.
  1478.   
  1479.     Put this in your TERMCAP environment variable:
  1480.   
  1481.       ... :vb=: ...                       
  1482.   
  1483.     And evaluate this:
  1484.   
  1485.       (setq visible-bell t)
  1486.   
  1487. 47:  How do I turn down the bell volume in Emacs running under X Windows?
  1488.   
  1489.   Under versions of Emacs before 18.58, the bell volume was annoying loud
  1490.   and difficult to turn off.  So upgrading to 18.58 or higher will reduce
  1491.   the volume.  If you want to turn it off completely, use `xset'.  There is
  1492.   no way to turn the bell off just for Emacs without affecting all other
  1493.   programs.
  1494.   
  1495.   Under Epoch you can do:
  1496.   
  1497.     (setq epoch::bell-volume 20)
  1498.   
  1499.   Stu Grossman <grossman@sunburn.stanford.edu> wrote a patch that allows the
  1500.   bell volume to be adjusted from inside Emacs just for Emacs.
  1501.   
  1502. 48:  How do I tell Emacs to automatically indent a new line to the
  1503.  indentation of the previous line?
  1504.   
  1505.   One solution is Indented Text Mode (M-x indented-text-mode).
  1506.   
  1507.   If you have Auto-Fill mode on (a minor mode, see question 32), you can
  1508.   tell Emacs to prefix every line with a certain character sequence, the
  1509.   "fill prefix".  Type the prefix at the beginning of a line, position point
  1510.   after it, and then type "C-x ." (set-fill-prefix) to set the fill prefix.
  1511.   Thereafter, auto-filling will automatically put the fill prefix at the
  1512.   beginning of new lines, and M-q (fill-paragraph) will maintain any fill
  1513.   prefix when refilling the paragraph.
  1514.   
  1515.   NOTE: If you have paragraphs with different levels of indentation, you
  1516.   will have to set the fill prefix to the correct value each time you move
  1517.   to a new paragraph.  To avoid this hassle, try one of the many packages
  1518.   available from the Emacs Lisp Archive.  Look up `fill' and `indent' in the
  1519.   Lisp Code Directory for guidance.
  1520.   
  1521. 49:  How do I show which parenthesis matches the one I'm looking at?
  1522.   
  1523.   If you're looking at a right parenthesis (or brace or bracket) you can
  1524.   delete it and reinsert it.  Emacs will blink the cursor on the matching
  1525.   parenthesis.
  1526.   
  1527.   M-C-f (forward-sexp) and M-C-b (backward-sexp) will skip over balanced
  1528.   parentheses, so you can see which parentheses match.  (You can train it to
  1529.   skip over balanced brackets and braces at the same time by modifying the
  1530.   syntax table.)
  1531.   
  1532.   Here is some Emacs Lisp that will make the % key show the matching
  1533.   parenthesis, like in vi.  In addition, if the cursor isn't over a
  1534.   parenthesis, it simply inserts a % like normal.
  1535.   
  1536.     ;; By an unknown contributor
  1537.   
  1538.     (global-set-key "%" 'match-paren)
  1539.   
  1540.     (defun match-paren (arg)
  1541.       "Go to the matching parenthesis if on parenthesis otherwise insert %."
  1542.       (interactive "p")
  1543.       (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
  1544.         ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
  1545.         (t (self-insert-command (or arg 1)))))
  1546.   
  1547. 50:  In C mode, can I show just the lines that will be left after #ifdef
  1548.  commands are handled by the compiler?
  1549.   
  1550.   M-x hide-ifdef-mode.  (This is a minor mode.)
  1551.   
  1552.   You may have to (load "hideif") first.  If you want to do this regularly,
  1553.   put this in your .emacs file:
  1554.   
  1555.     (autoload 'hide-ifdef-mode "hideif" nil t)
  1556.   
  1557.   {Yes, I know, this should be in lisp/loaddefs.el already.}
  1558.   
  1559. 51:  Is there an equivalent to the `.' (dot) command of vi?
  1560.   
  1561.   (`.' is the redo command in vi.  It redoes the last insertion/deletion.)
  1562.   
  1563.   No, not really.
  1564.   
  1565.   You can type "C-x ESC" (repeat-complex-command) to reinvoke commands that
  1566.   used the minibuffer to get arguments.  In repeat-complex-command you can
  1567.   type M-p and M-n to scan through all the different complex commands you've
  1568.   typed.
  1569.   
  1570.   To repeat something on each line I recommend using keyboard macros.
  1571.   
  1572. 52:  What are the valid X resource settings (ie., stuff in .Xdefaults)?
  1573.   
  1574.   See the Emacs man page, or the etc/OPTIONS file.  Ignore the information
  1575.   in etc/XDOC which is way out of date.
  1576.   
  1577. 53:  How do I execute a piece of Emacs Lisp code?
  1578.   
  1579.   There are a number of ways to execute (called "evaluate") an Emacs Lisp
  1580.   "form":
  1581.   
  1582.   * If you want it evaluated every time you run Emacs, put it in a file
  1583.     named `.emacs' in your home directory.
  1584.   
  1585.   * You can type the form in the *scratch* buffer, and then type LFD (or
  1586.     C-j) after it.  The result of evaluating the form will be inserted in
  1587.     the buffer.
  1588.   
  1589.   * In Emacs-Lisp mode, typing M-C-x evaluates a top-level form before or
  1590.     around point.
  1591.   
  1592.   * Typing "C-x C-e" in any buffer evaluates the Lisp form immediately
  1593.     before point and prints its value in the echo area.
  1594.   
  1595.   * Typing M-ESC or M-x eval-expression allows you to type a Lisp form in
  1596.     the minibuffer which will be evaluated.
  1597.   
  1598.   * You can use M-x load-file to have Emacs evaluate all the Lisp forms in
  1599.     a file.  (To do this from Lisp use the function `load' instead.)
  1600.   
  1601.   These functions are also used for evaluating Lisp forms:
  1602.   
  1603.     load-library, eval-region, eval-current-buffer, require, autoload
  1604.   
  1605. 54:  How do I change Emacs's idea of the tab character's length?
  1606.   
  1607.   Example: (setq default-tab-width 10).
  1608.   
  1609. 55:  How do I insert `>' at the beginning of every line?
  1610.   
  1611.   Type "M-x replace-regexp RET ^ RET > RET".
  1612.   
  1613.   To do this only in the region, type "C-x n M-x replace-regexp RET ^ RET
  1614.   > RET C-x w".
  1615.   
  1616.   WARNING: The command narrow-to-region (C-x n) is disabled by default
  1617.   because it can be very confusing (ie., "Oh no!  Where did my file go?").
  1618.   
  1619. 56:  How do I insert `_^H' before each character in a paragraph to get an
  1620.  underlined paragraph?
  1621.   
  1622.   M-x underline-region.
  1623.   
  1624. 57:  How do I repeat a command as many times as possible?
  1625.   
  1626.   Use "C-x (" and "C-x )" to make a keyboard macro that invokes the command
  1627.   and then type "M-0 C-x e".
  1628.   
  1629.   WARNING: any messages your command prints in the echo area will be
  1630.   suppressed.
  1631.   
  1632. 58:  How do I make Emacs behave like this: when I go up or down, the cursor
  1633.  should stay in the same column even if the line is too short?
  1634.   
  1635.   M-x picture-mode.  (This is a minor mode, in theory anyway ...)
  1636.   
  1637. 59:  How do I tell Emacs to iconify itself?
  1638.   
  1639.   You need to modify C source and recompile.  Either that or get Epoch or
  1640.   Lucid Emacs instead.  Patches have been written by Robert Forsman
  1641.   <thoth@reef.cis.ufl.edu> and Johan Vromans <jv@mh.nl> to allow Emacs to
  1642.   iconify itself and by Matt Wette <mwette@mr-ed.jpl.nasa.gov> and
  1643.   Manavendra K. Thakur <thakur@zerkalo.harvard.edu> (for 18.57, plus icon
  1644.   geometry) to allow Emacs to start up iconified.  I don't know which of
  1645.   these patches work together.
  1646.   
  1647.   Anonymous FTP:
  1648.     /csi.jpl.nasa.gov:pub/emax.patch1  (Matt Wette)
  1649.     /ftp.eu.net:gnu/emacs/FP-Xfun.Z  (Johan Vromans)
  1650.     /ftp.urc.tue.nl:/pub/tex/emacs/FP-Xfun  (Johan Vromans)
  1651.   
  1652. 60:  How do I use regexps (regular expressions) in Emacs?
  1653.   
  1654.   See `Regexps' in the online manual.
  1655.   
  1656.   WARNING: The "or" operator is `\|', not `|', and the grouping operators
  1657.   are `\(' and `\)'.  Also, the string syntax for a backslash is "\\".
  1658.   Thus, the string syntax for a regular expression like xxx\(foo\|bar\) is
  1659.   "xxx\\(foo\\|bar\\)".  Notice the duplicated backslashes!
  1660.   
  1661.   WARNING: Unlike in Unix grep, sed, etc., a complement character set
  1662.   ([^...])  can match a newline character (LFD aka C-j aka \n), unless
  1663.   newline is mentioned as one of the characters not to match.
  1664.   
  1665.   WARNING: The character syntax regexps (eg. `\sw') are not meaningful
  1666.   inside character set regexps (eg. `[aeiou]').  (This is actually typical
  1667.   for regexp syntax.)
  1668.   
  1669. 61:  How do I perform a replace operation across more than one file?
  1670.   
  1671.   The "tags" feature of Emacs includes the command tags-query-replace which
  1672.   performs a query-replace across all the files mentioned in the TAGS file.
  1673.   See `Tags:Tags Search' in the online manual.
  1674.   
  1675.   In addition, Martin Boyer has written a package named global-replace which
  1676.   will perform a query-replace across all the files mentioned in the
  1677.   *compilation* buffer (usually done after a `grep'), which is available via
  1678.   anonymous FTP:
  1679.   
  1680.     /ireq-robot.hydro.qc.ca:pub/emacs/lisp/compile.el.Z
  1681.     /ireq-robot.hydro.qc.ca:pub/emacs/lisp/global-replace.el.Z
  1682.     /ireq-robot.hydro.qc.ca:pub/emacs/lisp/query.el.Z
  1683.   
  1684. 62:  Where is the documentation for `etags'?
  1685.   
  1686.   `etags' takes options just like a prior version of ctags, so your ctags
  1687.   manual (if any) may be useful.  Eoin Woods, in comp.emacs, writes the      !
  1688.   following:                                                                 !
  1689.                                                                              !
  1690.     From reading the source (!) the way I use it is:                         !
  1691.                                                                              !
  1692.       for f in `find <args>`                                                 !
  1693.       do                                                                     !
  1694.          etags -at -f ETAGS $f                                               !
  1695.       done                                                                   !
  1696.                                                                              !
  1697.     The "-t" option means to create tags for typedefs as well as functions.  !
  1698.     The "-a" option tells it to append to the output file. If you have a     !
  1699.     small number of files (up to a few hundred I think) you can use it       !
  1700.     direct as:                                                               !
  1701.                                                                              !
  1702.       etags -f ETAGS file1 file2 file3 ... filen                             !
  1703.                                                                              !
  1704.     The option list is:                                                      !
  1705.                                                                              !
  1706.             -f file -  Specify the output file name (Default is "TAGS")      !
  1707.             -a      -  Append to the output file. (Default is to rewrite it) !
  1708.             -t      -  Create tags for typedefs (default is just functions)  !
  1709.             -u      -  Update the output file. Do not re-create it.          !
  1710.             -w      -  Suppress warnings                                     !
  1711.             -v      -  Create vgrind style indexed output (What is vgrind??) !
  1712.             -x      -  Create cxref style output (default is Emacs Tags)     !
  1713.             -e      -  Emacs tags style output (the default the way I        !
  1714.                        compile it)                                           !
  1715.                                                                              !
  1716.     Having got it working, it works fine!                                    !
  1717.   
  1718.  
  1719.  
  1720. Bugs/Problems
  1721.  
  1722. 63:  Does Emacs have problems with files larger than 8 megabytes?
  1723.   
  1724.   Most installed versions of GNU Emacs will use 24-bit signed integers (and
  1725.   24-bit pointers) internally.  This limits the file size that Emacs can
  1726.   handle to 8,388,607 bytes (2^23 - 1).
  1727.   
  1728.   Leonard N. Zubkoff <lnz@lucid.com> suggests putting the following two
  1729.   lines in src/config.h before compiling Emacs to allow for 26-bit integers
  1730.   and pointers (and thus filesizes of up to 33,554,431 bytes):
  1731.   
  1732.     #define VALBITS 26
  1733.     #define GCTYPEBITS 5
  1734.   
  1735.   WARNING: This method may result in `ILLEGAL DATATYPE' and other random
  1736.   errors on some machines.
  1737.   
  1738.   David Gillespie <daveg@csvax.cs.caltech.edu> gives an explanation of why
  1739.   Emacs uses 24 bit integers and pointers:
  1740.   
  1741.     Emacs is largely written in a dialect of Lisp; Lisp is a freely-typed
  1742.     language in the sense that you can put any value of any type into any
  1743.     variable, or return it from a function, and so on.  So each value must
  1744.     carry a "tag" along with it identifying what kind of thing it is, eg.,
  1745.     integer, pointer to a list, pointer to an editing buffer, and so on.
  1746.     Emacs uses standard 32-bit integers for data objects, taking the top 8
  1747.     bits for the tag and the bottom 24 bits for the value.  So integers (and
  1748.     pointers) are somewhat restricted compared to true C integers and
  1749.     pointers.
  1750.   
  1751.     Emacs uses 8-bit tags because that's a little faster on byte-oriented
  1752.     machines, but there are only really enough tags to require 6 bits.
  1753.   
  1754. 64:  Why can't Emacs find files in current directory on startup?
  1755.   
  1756.   The PWD bug has been fixed as of GNU Emacs 18.59.  Read on if you are
  1757.   running an older version of Emacs.
  1758.  
  1759.   Most likely, you have an environment variable named PWD that is set to a
  1760.   value other than the name of your current directory.  This is most
  1761.   likely caused by using two different shell programs.  `ksh' and (some
  1762.   versions of) `csh' set and maintain the value of the PWD environment
  1763.   variable, but `sh' doesn't.  If you start sh from ksh, change your
  1764.   current directory inside sh, and then start Emacs from inside sh, PWD
  1765.   will have the wrong value but Emacs will use this value.  An invalid
  1766.   setting for PWD can also be a problem if you use X Windows and csh on an
  1767.   RS/6000.  See the etc/OPTIONS file for more details.
  1768.   
  1769.   Perhaps an easier solution is not to use two shells.  The `chsh' program
  1770.   can often be used to change one's default login shell.
  1771.   
  1772.   You may have PWD set for other reasons.  Another possibility is that you
  1773.   are setting default-directory from your .emacs file.
  1774.   
  1775.   Here is a fix by Jim Blandy <jimb@occs.cs.oberlin.edu>:
  1776.   
  1777.     >--- emacs/jjj/emacs-18.58/lisp/startup.el    Tue Jan 15 23:19:04 1991
  1778.     >+++ startup.el    Mon Apr 20 00:21:01 1992
  1779.     >@@ -81,5 +81,7 @@
  1780.     >     ;; In presence of symlinks, switch to cleaner form of default directory.
  1781.     >     (if (and (not (eq system-type 'vax-vms))
  1782.     >-         (getenv "PWD"))
  1783.     >+         (getenv "PWD")
  1784.     >+          (equal (nthcdr 10 (file-attributes default-directory))
  1785.     >+             (nthcdr 10 (file-attributes (getenv "PWD")))))
  1786.     >     (setq default-directory (file-name-as-directory (getenv "PWD"))))
  1787.     >     (unwind-protect
  1788.   
  1789. 65:  How do I get rid of the ^M junk in my Shell buffer?
  1790.   
  1791.   For tcsh, put this in your `.cshrc' (or `.tcshrc') file:
  1792.   
  1793.     if ($?EMACS) then
  1794.         if ("$EMACS" == t) then
  1795.         if ($?tcsh) unset edit
  1796.         stty nl
  1797.     endif
  1798.     endif
  1799.   
  1800.   Or put this in your .emacs_tcsh file:
  1801.   
  1802.     unset edit
  1803.     stty nl
  1804.   
  1805.   Alternatively, use csh in your Shell buffers instead of tcsh.  One way
  1806.   is:
  1807.   
  1808.     (setq explicit-shell-file-name "/bin/csh") 
  1809.   
  1810.   and another is to do this in your .cshrc (or .tcshrc) file:
  1811.   
  1812.     setenv ESHELL /bin/csh
  1813.   
  1814.   (You must start Emacs over again with the environment variable properly
  1815.   set for this to take effect.)
  1816.   
  1817. 66:  Why do I get `Process shell exited abnormally with code 1'?
  1818.   
  1819.   The most likely reason for this message is that the `env' program is not
  1820.   properly installed.  This program should be compiled (for the correct
  1821.   architecture!) and installed with execute permission for everyone in
  1822.   Emacs's program directory, which is normally /usr/local/emacs/etc.  You
  1823.   can find what this directory is at your site by inspecting the value of
  1824.   the variable exec-directory by typing "C-h v exec-directory RET".  `env'
  1825.   should also be for the correct architecture (check using `file' command).
  1826.   
  1827.   You should also check for other programs named `env' in your path (eg.,
  1828.   SunOS has a program named /usr/bin/env).  I don't understand why this can
  1829.   cause a failure and I don't know a general solution for working around the
  1830.   problem in this case.
  1831.   
  1832.   The `make clean' command will remove `env' and other vital programs, so be
  1833.   careful when using it.
  1834.   
  1835.   It has been reported that this sometimes happened when Emacs was started
  1836.   as an X client from an xterm window (ie. had a controlling tty) but the
  1837.   xterm was later terminated.
  1838.   
  1839.   See also etc/PROBLEMS for other possible causes of this message.
  1840.   
  1841. 67:  Why can't I cut from Emacs and paste in other X programs?
  1842.   
  1843.   Emacs stores things you "cut" in the X "cut buffers".  It also pastes from
  1844.   the cut buffer `CUT_BUFFER0'.  This is obsolete.  Most modern X programs
  1845.   now expect to work with "selections" instead of cut buffers, although some
  1846.   like `xterm' will try to use the cut buffers if the selection is null.
  1847.   
  1848.   Emacs 18.58 contains a "fix" that makes xterm work by default.  This
  1849.   "fix" is that Emacs clears the `PRIMARY' selection when it stores
  1850.   something in the cut buffer.  By making the selection null, xterm will
  1851.   then fetch from the cut buffer when you try to paste.
  1852.   
  1853.   For versions of Emacs prior to 18.58, you can make pasting from Emacs into
  1854.   xterm work with the following X resources:
  1855.   
  1856.     ! Solution by Thomas Narten, should work under X11R3 and later GNU
  1857.     ! Emacs only copies to CUT_BUFFER0.  xterm by default wants to paste
  1858.     ! from the PRIMARY selection.
  1859.     XTerm*VT100.Translations: #override \
  1860.         ~Meta <Btn2Up>: insert-selection(CUT_BUFFER0,PRIMARY)
  1861.   
  1862.   You may have problems copying between Emacs and programs other than xterm
  1863.   that won't store cut text in the cut buffers or look in the cut buffers
  1864.   for text to paste (for backwards compatibility with obsolete applications
  1865.   like Emacs :-).  The best workaround is to use the `xcutsel' program as an
  1866.   intermediary.
  1867.   
  1868.   This problem does not exist for Epoch or Lucid Emacs.
  1869.   
  1870. 68:  Where is the termcap/terminfo entry for terminal type `emacs'?
  1871.   
  1872.   The termcap entry for terminal type `emacs' is ordinarily put in the
  1873.   TERMCAP environment variable of subshells.  It may help in certain
  1874.   situations (eg., using rlogin from shell buffer) to add an entry for
  1875.   `emacs' to the system-wide termcap file.  Here is a correct termcap entry
  1876.   for `emacs':
  1877.   
  1878.     emacs:tc=unknown:
  1879.   
  1880.   To make a terminfo entry for `emacs', use `tic' or `captoinfo'.  You need
  1881.   to generate /usr/lib/terminfo/e/emacs.  It may work to simply copy
  1882.   /usr/lib/terminfo/d/dumb to /usr/lib/terminfo/e/emacs.
  1883.   
  1884.   Having a termcap/terminfo entry will not enable the use of full screen
  1885.   programs in shell buffers.  Use M-x terminal-emulator for that instead.
  1886.   
  1887.   A workaround to the problem of missing termcap/terminfo entries is to
  1888.   change terminal type `emacs' to type `dumb' or `unknown' in your shell
  1889.   start up file.  `csh' users could put this in their .cshrc files:
  1890.   
  1891.     if ("$term" == emacs) set term=dumb
  1892.   
  1893. 69:  Why does Emacs spontaneously start displaying `I-search:' and beeping?
  1894.   
  1895.   Your terminal (or something between your terminal and the computer) is
  1896.   sending C-s and C-q for flow control, and Emacs is receiving these
  1897.   characters and interpreting them as commands.  (The C-s character normally
  1898.   invokes the isearch-forward command.)  For possible solutions, see
  1899.   question 131.
  1900.   
  1901. 70:  Why can't Emacs talk to certain hosts (or certain hostnames)?
  1902.   
  1903.   The problem may be that Emacs is linked with a wimpier version of
  1904.   gethostbyname than the rest of the programs on the machine.  This is often
  1905.   manifested as a message on startup of `X server not responding.  Check
  1906.   your DISPLAY environment variable.' or a message of `Unknown host' from
  1907.   open-network-stream.
  1908.   
  1909.   On a Sun, this may be because Emacs had to be linked with the static C
  1910.   library.  The version of gethostbyname in the static C library may only
  1911.   look in /etc/hosts and the NIS (YP) maps, while the version in the dynamic
  1912.   C library may be smart enough to check DNS in addition to or instead of
  1913.   NIS.  On a Motorola Delta running System V R3.6, the version of
  1914.   gethosbyname in the standard library works, but the one that works with
  1915.   NIS doesn't (the one you get with -linet).  Other operating systems have
  1916.   similar problems.
  1917.   
  1918.   Try these options:
  1919.   
  1920.   * Explicitly add the host you want to communicate with to /etc/hosts.
  1921.   
  1922.   * Relink Emacs with this line in src/config.h:
  1923.   
  1924.       #define LIBS_SYSTEM -lresolv
  1925.   
  1926.   * Replace gethostbyname and friends in libc.a with more useful versions
  1927.     such as the ones in libresolv.a.  Then relink Emacs.
  1928.   
  1929.   * If you are actually running NIS, make sure that `ypbind' is properly
  1930.     told to do DNS lookups with the correct command line switch.
  1931.   
  1932.   * Use tcp.el and tcp.c from GNUS.  This has the additional advantage that
  1933.     you can use numeric IP addresses instead of names.  open-network-stream
  1934.     currently can't handle numeric addresses.  Brian Thomson
  1935.     <thomson@hub.toronto.edu> has a enhancement to open-network-stream to
  1936.     allow it to handle numeric addresses.
  1937.   
  1938. 71:  Why does Emacs say `Error in init file'?
  1939.   
  1940.   An error occurred while loading either your .emacs file or the system-wide
  1941.   lisp/default.el file.  For information on how to debug your .emacs file,
  1942.   see question 29.
  1943.   
  1944.   It may be the case that you may need to load some package first, or use a
  1945.   hook that will be evaluated after the package is loaded.  A common case of
  1946.   this is explained in question 127.
  1947.   
  1948. 72:  Why does Emacs ignore my X resources (my .Xdefaults file)?
  1949.   
  1950.   * Try compiling Emacs with the XBACKWARDS macro defined.  There is a bug
  1951.     in some implementations of XGetDefault, which do not correspond to the
  1952.     documentation or the header files.
  1953.   
  1954.   * Make sure you are either using the class name of `Emacs' (oops,
  1955.     apparently this is buggy in Emacs 18.58!) or the correct instance name.
  1956.     The instance name is normally the same as the name of the file Emacs is
  1957.     in (ie., the last part of argv[0]), but this can be overridden by -rn
  1958.     command line option or the WM_RES_NAME environment variable.
  1959.   
  1960.     WARNING: Reports say using the class name fails in Emacs 18.58.
  1961.   
  1962.     WARNING: The advice the man page gives to use `emacs' is often wrong.
  1963.   
  1964.     WARNING: Older versions of Emacs got the class name wrong.
  1965.   
  1966.   * Emacs currently ignores the -xrm command line argument.
  1967.   
  1968.   * Emacs does not yet handle X11R5 screen-specific resources.
  1969.   
  1970.   * Emacs has a bug where it ignores color specifications if running on a
  1971.     1-bit display (ie. a non-color display).
  1972.   
  1973.   * I don't think Emacs will use either of the application-specific resource
  1974.     files.  Thus these environment variables don't affect it: XAPPLRESDIR,
  1975.     XUSERFILESEARCHPATH, XFILESEARCHPATH.  {Correct?}
  1976.   
  1977. 73:  Why does Emacs take 20 seconds to visit a file?
  1978.   
  1979.   The usual cause is that the master lock file, `!!!SuperLock!!!' has been
  1980.   left in the lock directory somehow.  Delete it.
  1981.   
  1982.   Mark Meuer <meuer@geom.umn.edu> says that NeXT NFS has a bug where an
  1983.   exclusive create succeeds but returns an error status.  This can cause the
  1984.   same problem.  Since Emacs's file locking doesn't work over NFS anyway,
  1985.   the best solution is to recompile Emacs with CLASH_DETECTION undefined.
  1986.   
  1987. 74:  How do I edit a file with a `$' in its name?
  1988.   
  1989.   When entering a filename in the minibuffer, Emacs will attempt to expand
  1990.   a `$' followed by a word as an environment variable.  To suppress this
  1991.   behavior, type "$$" instead.
  1992.   
  1993. 75:  Why does Shell mode lose track of the shell's current directory?
  1994.   
  1995.   Emacs has no way of knowing when the shell actually changes its directory.
  1996.   This is an intrinsic limitation of Unix.  So it tries to guess by
  1997.   recognizing `cd' commands.  If you type `cd' followed by a directory name
  1998.   with a variable reference (`cd $HOME/bin') or with a shell metacharacter
  1999.   (`cd ../lib*'), Emacs will fail to correctly guess the shell's new current
  2000.   directory.  A huge variety of fixes and enhancements to Shell mode for
  2001.   this problem have been written to handle this problem.  Check the Lisp
  2002.   Code Directory (see question 88).
  2003.   
  2004. 76:  Why doesn't my change to load-path work?
  2005.   
  2006.   If you added a directory name containing a tilde (~) to your load-path,
  2007.   expecting the tilde to be interpreted as your home directory, then you
  2008.   need to do something like this:
  2009.   
  2010.     (setq load-path (mapcar 'expand-file-name load-path))
  2011.   
  2012. 77:  Why does the cursor always go to the wrong column when I move up or
  2013.  down one line?
  2014.   
  2015.   You have inadvertently typed "C-x C-n" (set-goal-column) which sets the
  2016.   "goal column" to the column where the cursor was.  To undo this type
  2017.   "C-u C-x C-n".
  2018.   
  2019.   If you make this mistake frequently, you might want to unbind or disable
  2020.   this command by doing one of these two:
  2021.   
  2022.     (define-key ctl-x-map "\C-n" nil)
  2023.     (put 'set-goal-column 'disabled t)
  2024.   
  2025. 78:  Why does Emacs hang with message `Unknown XMenu error' with X11R4?
  2026.   
  2027.   Many different X errors can produce this message.  Here is the solution
  2028.   to one problem:
  2029.   
  2030.   X11 Release 4 (and later, including OpenWindows) enforces some conditions
  2031.   in the X protocol that were previously allowed to pass unnoticed.  You
  2032.   need to put the X11R4 server into X11R3 bug compatibility mode for Emacs's
  2033.   Xmenu code to work.  You can do this with the command `xset bc'.
  2034.   
  2035. 79:  Why doesn't display-time show the load average in the mode line
  2036.  anymore?
  2037.   
  2038.   In GNU Emacs 18.56, a change was made in the display-time code.
  2039.   Formerly, in version 18.55, Emacs used a program named `loadst' to
  2040.   notify Emacs of the change in time every minute.  loadst also sent Emacs
  2041.   the system load average if it was installed with sufficient privilege to
  2042.   get that information (or was on a system where no such privilege was
  2043.   needed).  Emacs then displayed this information in the mode line.
  2044.   
  2045.   In version 18.56, this code was changed to use a program named `wakeup'.
  2046.   wakeup doesn't send Emacs any information, it's only purpose is to send
  2047.   Emacs *something* every minute, thus invoking the filter function in
  2048.   Emacs once a minute.  The filter function in Emacs does all the work of
  2049.   finding the time, date, and load average.  However, getting the load
  2050.   average requires the privilege to read kernel memory on most systems.
  2051.   Since giving Emacs this privilege would destroy any security a system
  2052.   might have, for almost everyone this is not an option.  In addition,
  2053.   Emacs does not have the code built into it to get this information on
  2054.   the systems which have special system calls for this purpose, even
  2055.   though loadst had code for this.
  2056.   
  2057.   The solution I use is to get the files lisp/display-time.el and
  2058.   etc/loadst.c from version 18.55 and use those with 18.58.  (I have heard
  2059.   a rumor that loadst disappeared because of the legal action Unipress
  2060.   threatened against IBM.)
  2061.   
  2062.   WARNING:  Do not install Emacs setgid kmem unless you wish to destroy
  2063.   any security your system might have!!!!!!!!!!
  2064.   
  2065.   If you are using Emacs 18.55 or earlier, or already using the solution I
  2066.   describe above, read further:
  2067.   
  2068.   The most likely cause of the problem is that `loadst' can't read the
  2069.   special file /dev/kmem.  To properly install loadst, it should be either
  2070.   setuid to the owner of /dev/kmem, or is should be setgid to the group to
  2071.   which /dev/kmem belongs.  In either case, /dev/kmem should be readable by
  2072.   its owner or its group, respectively.  Assuming the existence of a group
  2073.   named `kmem', here is an example of how to do this:
  2074.   
  2075.     chgrp kmem /dev/kmem
  2076.     chmod g+r /dev/kmem
  2077.     chgrp kmem /usr/local/emacs/etc/loadst
  2078.     chmod g+s /usr/local/emacs/etc/loadst
  2079.   
  2080.   Another possibility is that your version of Unix doesn't have the load
  2081.   average data available in /dev/kmem.  Your version of Unix might have a
  2082.   special system call to retrieve this information (eg., inq_stats under
  2083.   UMAX), and loadst might not have been enhanced to cope with this.
  2084.   
  2085. 80:  Why does ispell sometimes ignore the local dictionary?
  2086.   
  2087.   You need to update the version of Ispell to 2.0.02.  (Or you can switch to
  2088.   version 3.0 which is still in beta-testing.)  A patch is available via
  2089.   anonymous FTP:
  2090.  
  2091.     /archive.cis.ohio-state.edu:pub/gnu/ispell/patch2.Z
  2092.   
  2093.   You also need to change a line in ispell.el from:
  2094.   
  2095.     (defconst ispell-version "2.0.01") ; Check against output of "ispell -v".
  2096.   
  2097.   to:
  2098.   
  2099.     (defconst ispell-version "2.0.02") ; Check against output of "ispell -v".
  2100.   
  2101. 81:  Why does Ispell treat each line as a single word?
  2102.   
  2103.   Ispell expects to get its input one word per line.  The ispell filter,
  2104.   which is specified by the variables ispell-filter-hook and
  2105.   ispell-filter-hook-args, should output at most one word per line.
  2106.   
  2107. 82:  Are there any security risks in GNU Emacs?
  2108.   
  2109.   * the `movemail' incident (No, this is not a risk.)
  2110.   
  2111.     Cliff Stoll in his book `The Cuckoo's Egg' describes this in chapter 4.
  2112.     The site at LBL had installed the `etc/movemail' program setuid root.
  2113.     Since `movemail' had not been designed for this situation, a security
  2114.     hole was created and users could get root priveleges.
  2115.   
  2116.     `movemail' has since been changed so that even if it is installed setuid
  2117.     root this security hole will not be a result.
  2118.   
  2119.     I have heard unverified reports that the Internet worm took advantage of
  2120.     this configuration problem.
  2121.   
  2122.   * the file-local-variable feature (Yes, a risk, but easy to change.)
  2123.   
  2124.     There is an Emacs feature that allows the setting of local values for
  2125.     variables when editing a file by including specially formatted text near
  2126.     the end of the file.  This feature also includes the ability to have
  2127.     arbitrary Emacs Lisp code evaluated when the file is visited.
  2128.     Obviously, there is a potential for Trojan horses to exploit this
  2129.     feature.
  2130.   
  2131.     If you set the variable inhibit-local-variables to a non-nil value,
  2132.     Emacs will display the special local variable settings of a file that
  2133.     you visit and ask you if you really want them.  This variable is not
  2134.     mentioned in the manual.
  2135.   
  2136.     It is wise to do this in lisp/site-init.el before building Emacs:
  2137.   
  2138.       (setq inhibit-local-variables t)
  2139.   
  2140.     If Emacs has already been built, the expression can be put in
  2141.     lisp/default.el instead, or an individual can put it in their own .emacs
  2142.     file.
  2143.   
  2144.     The ability to exploit this feature by sending e-mail to an RMAIL user
  2145.     was fixed sometime after Emacs 18.52.  However, any new package that
  2146.     uses find-file or find-file-noselect has to be careful about this.
  2147.   
  2148.     For more information, see `File Variables' in the online manual (which,
  2149.     incidentally, does not describe how to disable the feature).
  2150.   
  2151.     There is a new variable in Emacs 18.58 named ignore-local-eval which
  2152.     turns out to be useless as currently implemented.  Ignore it.
  2153.   
  2154.   * synthetic X events (Yes, a risk, use MIT-MAGIC-COOKIE-1 or better.)
  2155.   
  2156.     Emacs accepts synthetic X events generated by the SendEvent request as
  2157.     though they were regular events.  As a result, if you are using the
  2158.     trivial host-based authentication, other users who can open X
  2159.     connections to your X workstatation can make your Emacs process do
  2160.     anything, including run other processes with your priveleges.
  2161.   
  2162.     The only fix for this is to prevent other users from being able to open
  2163.     X connections.  The standard way to prevent this is to use a real
  2164.     authentication mechanism, such as MIT-MAGIC-COOKIE-1.  If using the
  2165.     `xauth' program has any effect, then you are probably using
  2166.     MIT-MAGIC-COOKIE-1.  Your site may be using a superior authentication
  2167.     method; ask your system administrator.
  2168.   
  2169.     If real authentication is not a possibility, you may be satisfied by
  2170.     just allowing hosts access for brief intervals while you start your X
  2171.     programs, then removing the access.  This reduces the risk somewhat by
  2172.     narrowing the time window when hostile users would have access, but DOES
  2173.     NOT ELIMINATE THE RISK.
  2174.   
  2175.     Lucid GNU Emacs does not accept synthetic X events unless you set a
  2176.     variable.
  2177.   
  2178.   * autosave file permissions (Yes, a risk, hard to work around.)
  2179.   
  2180.     The file permissions for autosave files are determined solely by the
  2181.     Emacs process's `umask' value.  The permissions of the file being
  2182.     autosaved are not used.  The easiest workaround is to keep sensitive
  2183.     files in protected directories.  Sebastian Kremer has written an
  2184.     enhanced version of the autosave file name picking code that can avoid
  2185.     this problem by keeping autosave files in a protected directory.  {FTP
  2186.     information please?}  This problem will be fixed in Emacs 19.
  2187.   
  2188.  
  2189.  
  2190. Difficulties Building/Installing/Porting Emacs
  2191.  
  2192. 83:  What should I do if I have trouble building Emacs?
  2193.   
  2194.   First look in the file etc/PROBLEMS to see if there is already a solution
  2195.   for your problem.  Next check the FAQ (you're reading it).  If you don't
  2196.   find a solution, then report your problem via e-mail to
  2197.   bug-gnu-emacs@prep.ai.mit.edu.  Please do not post it to gnu.emacs.help or
  2198.   e-mail it to help-gnu-emacs@prep.ai.mit.edu.  For further guidelines, see
  2199.   question 8.
  2200.   
  2201. 84:  How do I stop Emacs from failing when the executable is stripped?
  2202.   
  2203.   Don't do that.
  2204.   
  2205.   This problem has been reported on SGI Indigo machines running Irix 4.0.*
  2206.   and RS/6000 machines.  Scott Henry <scotth@hoshi.corp.SGi.COM> posted a
  2207.   patch that fixes the problem for Irix.
  2208.   
  2209. 85:  Why does linking Emacs with -lX11 fail?
  2210.   
  2211.   Emacs needs to be linked with the static version of the X11 library,
  2212.   libX11.a.  This may be missing.
  2213.   
  2214.   Under OpenWindows, you may need to use `add_services' to add the
  2215.   `OpenWindows Programmers' optional software category from the CD-ROM.
  2216.   
  2217.   Under HP-UX 8.0, you may need to run `update' again to load the
  2218.   X11-PRG `fileset'.  This may be missing even if you specified `all
  2219.   filesets' the first time.  If libcurses.a is missing, you may need to load
  2220.   the `Berkeley Development Option' {???}.
  2221.   
  2222.   If you are building the MIT X11 sources, you may need to modify your
  2223.   `site.cf' file to get static versions of the libraries.  (Info from David
  2224.   Zuhn <zoo@cygnus.com>.)
  2225.   
  2226.   Other systems may have similar problems.  You can always define
  2227.   CANNOT_DUMP and link with the shared libraries instead.
  2228.   
  2229.   To get the Xmenu stuff to work, you need to find a copy of MIT's
  2230.   liboldX.a.
  2231.   
  2232. 86:  Why does Emacs 18.55 say `Fatal error (6).Abort' under SunOS 4.1?
  2233.   
  2234.   I had hoped this question would go away after Emacs 18.57 was released,
  2235.   but people continue to compile 18.55.  Easiest solution: upgrade.
  2236.   
  2237.   This is a result of the SunOS localtime/tzsetwall malloc bug, which was
  2238.   (finally!) fixed in SunOS 4.1.2.  If you actually need the full
  2239.   explanation, send me e-mail.  If you absolutely must compile Emacs 18.55
  2240.   (eg., you are compiling Nemacs), the easiest workaround was to put
  2241.   `#define SYSTEM_MALLOC' in src/config.h.
  2242.   
  2243.  
  2244.  
  2245. Finding/Getting Emacs and Related Packages
  2246.  
  2247. 87:  Where can I get GNU Emacs on the net (or by snail mail)?
  2248.   
  2249.   Look in the files etc/DISTRIB and etc/FTP for information on nearby
  2250.   archive sites.  If you don't already have GNU Emacs, see question 20
  2251.   for how to get these two files.
  2252.   
  2253.   The latest version is always available via anonymous FTP at MIT:
  2254.   
  2255.     /prep.ai.mit.edu:pub/gnu/emacs-18.59.tar.Z
  2256.   
  2257.   See question 91.
  2258.   
  2259. 88:  How do I find a GNU Emacs Lisp package that does XXX?
  2260.   
  2261.   A listing of Emacs Lisp packages, called the Lisp Code Directory, is being
  2262.   maintained by Dave Brennan <brennan@hal.com> and Dave Sill <de5@ornl.gov>.
  2263.   You can search through this list to find if someone has written something
  2264.   that fits your needs.
  2265.   
  2266.   This list is file LCD-datafile.Z in the Emacs Lisp Archive.  (See
  2267.   question 89 for methods for getting this file.)  The files lispdir.el.Z
  2268.   and lispdir.doc.Z in the archive contain information to help you use the
  2269.   list.  Once you have installed lispdir.el and LCD-datafile, then you can
  2270.   use the "M-x lisp-dir-apropos" command to look things up in the database.
  2271.   For example, the command "M-x lisp-dir-apropos RET ange-ftp RET" produces
  2272.   this (outdated) output:
  2273.   
  2274.             GNU Emacs Lisp Code Apropos -- "ange-ftp"
  2275.   
  2276.     ange-ftp (3.112)  91-08-12
  2277.       Andy Norman, <ange@hplb.hpl.hp.com>
  2278.       archive.cis.ohio-state.edu:
  2279.         /pub/gnu/emacs/elisp-archive/as-is/ange-ftp.el.Z
  2280.       transparent FTP Support for GNU Emacs
  2281.   
  2282. 89:  Where can I get GNU Emacs Lisp packages that don't come with Emacs?
  2283.   
  2284.   First, check the Lisp Code Directory to find the name of the package you
  2285.   are looking for.  (See question 88).  Then check local archives and
  2286.   the Emacs Lisp Archive to find a copy of the relevant files.  Then, if
  2287.   you still haven't found it, you can send e-mail to the author asking for
  2288.   a copy.
  2289.   
  2290.   You can access the Emacs Lisp Archive via anonymous FTP:
  2291.   
  2292.     /archive.cis.ohio-state.edu:/pub/gnu/emacs/elisp-archive/
  2293.   
  2294.   Fetch the file README first.
  2295.   
  2296.   NOTE: The archive maintainers do not have time to answer individual
  2297.   requests for packages or the list of packages in the archive.  If you
  2298.   cannot use FTP or UUCP to access the archive yourself, try to find a
  2299.   friend who can, but please don't ask the maintainers.
  2300.   
  2301.   NOTE: Any files with names ending in `.Z' are compressed, and you should
  2302.   use `binary' mode in FTP to retrieve them.  You should also use binary
  2303.   mode whenever you retrieve any files with names ending in `.elc'.
  2304.   
  2305. 90:  How do I submit code to the Emacs Lisp Archive?
  2306.   
  2307.   Submissions should be mailed to elisp-archive@cis.ohio-state.edu.  The
  2308.   lispdir.el package has a function named submit-lcd-entry which will help
  2309.   you with this.  Mail messages (submissions) are automatically saved and
  2310.   periodically archived.  Urgent mail may be sent directly to Dave Sill
  2311.   <de5@ornl.gov> or Dave Brennan <brennan@hal.com> or should contain the
  2312.   string `urgent' in the subject.  The incoming ftp directory is no longer
  2313.   available at the request of Ohio State.  {Is this still true?}
  2314.   
  2315.   However, if someone has a submission with multiple files (which would be
  2316.   archived as a tar file) or binary files, then FTP transfer is preferred
  2317.   and can be arranged via an anonymous FTP site.  This is faster than
  2318.   uudecoding, unsharing, etc., and re-packaging files.
  2319.   
  2320.   Before submitting anything, please read the file guidelines.Z, which is
  2321.   available in the archive.  Whenever possible, submissions should contain a
  2322.   complete LCD entry since this helps reduce administrative overhead for the
  2323.   maintainers.  You can include an entry in this format:
  2324.   
  2325.     ;; LCD Archive Entry:
  2326.     ;; package name|author's name|email address
  2327.     ;; |description
  2328.     ;; |date|version|archive path
  2329.   
  2330.   For example:
  2331.   
  2332.     ;; LCD Archive Entry:
  2333.     ;; tex-complete|Sebastian Kremer|sk@thp.Uni-Koeln.DE
  2334.     ;; |Minibuffer name completion for editing [La]TeX.
  2335.     ;; |91-03-26|$Revision: 20.5 $|~/packages/tex-complete.el.Z              !
  2336.   
  2337.   Dave Brennan has software which automatically looks for data in this
  2338.   format.  The format is fairly flexible.  The entry ends when a line is
  2339.   reached with a different prefix or the seventh field terminator is
  2340.   seen.
  2341.   
  2342.   If you are submitting a multi-file submission you should include a file
  2343.   named "LCD-entry" which contains the archive entry, instead of placing
  2344.   it in one or more of the individual files.
  2345.   
  2346. 91:  Where can I get other up-to-date GNU stuff?
  2347.   
  2348.   The most up-to-date official GNU stuff is normally kept on prep.ai.mit.edu
  2349.   and is available for anonymous FTP in the pub/gnu directory.  See the
  2350.   files etc/DISTRIB and etc/FTP for more information.  (To get copies of
  2351.   these files, see question 20.)
  2352.   
  2353.   The following sites are all mirror images of the GNU distribution area:
  2354.   
  2355.     /prep.ai.mit.edu:pub/gnu/
  2356.     /ftp.uu.net:packages/gnu/
  2357.     /src.doc.ic.ac.uk:gnu/ (available via FTP, NIFTP, FTAM)
  2358.     /ftp.win.tue.nl:pub/gnu/
  2359.     /utsun.s.u-tokyo.ac.jp:ftpsync/prep/
  2360.     /nic.funet.fi:pub/gnu/
  2361.   
  2362.   The directory at ftp.uu.net is a mirror of prep.ai.mit.edu:pub/gnu,
  2363.   except that files larger than 1 megabyte {right?} are automatically
  2364.   split into multiple parts.  If you have trouble transferring large
  2365.   files, you should try here.  A file normally named `XXX' is split into
  2366.   files XXX-split/part[0-9][0-9], and there will be a file named
  2367.   XXX-split/README which contains the list of parts (especially helpful
  2368.   when FTP-ing by e-mail), their checksums, and reassembly instructions.
  2369.   Some of the other mirror sites may have the same property.  {Can someone
  2370.   check this out?  Thanks!}
  2371.   
  2372.   Information was provided by Lee McLoughlin <lmjm@doc.ic.ac.uk>, Jonathan
  2373.   R. Ferro <jf41+@ANDREW.CMU.EDU>, Arjan de Vet <devet@win.tue.nl>, and
  2374.   Simon Marshall <S.Marshall@sequent.cc.hull.ac.uk>.
  2375.   
  2376. 92:  Where can I get an Emacs with better mouse and X window support?
  2377.   
  2378.   Emacs 18 has some limited X Window System support, but there are
  2379.   problems.  Emacs 19 will have amazing mouse and window support.  Right
  2380.   now, there are Epoch which is derived from GNU Emacs 18.58 and Lucid GNU
  2381.   Emacs which is derived from an early unreleased version of GNU Emacs 19,
  2382.   both of which have greatly improved mouse and window support.  See
  2383.   questions 120 and 121.
  2384.   
  2385.   The HP unofficial GNU Emacs also has nice mouse support.  See question
  2386.   95.
  2387.   
  2388.   There are numerous Emacs Lisp packages that have been written to extend
  2389.   Emacs 18's mouse handling capabilities.  Some of these packages also have
  2390.   patches to the C code to provide enhanced capabilities.  Look up `mouse'
  2391.   in the Lisp Code Directory (see question 88).
  2392.   
  2393.   There is a package called BAM (Born Again Menus) which provides menus for
  2394.   GNU Emacs via an external C program.  It does not provide mouse support in
  2395.   the Emacs window such as scrollbars, cut-and-paste, etc.
  2396.   
  2397.   NOTE: Epoch only works with the X Window System; it works on ordinary
  2398.   terminals by invoking regular GNU Emacs.  Lucid Emacs does not currently
  2399.   work on ordinary terminals, although there are plans to fix this.
  2400.   
  2401. 93:  What is the difference between GNU Emacs and Epoch?
  2402.   
  2403.   Marc Andreessen <marca@ncsa.uiuc.edu> writes:
  2404.   
  2405.     Epoch is GNU Emacs on steroids: an adaptation of GNU Emacs with lots of
  2406.     additional support for features made possible by the X11 windowing
  2407.     system.  These features include multiple editing windows, arbitrary
  2408.     colors and fonts (fixed-width and proportional), selectable zones per
  2409.     buffer with arbitrary display styles (font, color, underline, stipple,
  2410.     pixmap), an optional separate minibuffer window, improved keyboard and
  2411.     mouse handling, full 8-bit character set support, and more.
  2412.   
  2413. 94:  What is the difference between GNU Emacs and Lucid GNU Emacs?
  2414.   
  2415.   This information is condensed from the release notice:
  2416.   
  2417.     Lucid GNU Emacs is based on an early version of GNU Emacs version 19
  2418.     with many enhancements.  It currently requires X Windows to run.  For
  2419.     information on where to get Lucid GNU Emacs see 121.  X Windows support
  2420.     is greatly enhanced over GNU Emacs version 18, including support for
  2421.     multiple X Windows (a.k.a. screens in Emacs), Zmacs/Lispm style region
  2422.     highlighting, a customizable, Motif-like menubar, more powerful keymap
  2423.     support (allowing different actions to be associated with Backspace,
  2424.     Control-h, etc.), flexible text attribute (e.g. font, color) support on
  2425.     regional and screen-local basis through X resources and/or lisp, and
  2426.     support for the X11 selection mechanism.  Some other features include
  2427.     run-time computation of the load-path, support for floating point
  2428.     numbers, native timer support, and sound file support on Sun
  2429.     SPARCstations.  To build Lucid GNU Emacs, an ANSI C compiler (e.g. gcc)
  2430.     is required.
  2431.   
  2432. 95:  Where can I get the "unofficial HP GNU Emacs"?
  2433.   
  2434.   The unofficial HP GNU Emacs is available via anonymous FTP:
  2435.   
  2436.     /ee.utah.edu:HUGE/  (PLEASE FTP DURING NON-WORK HOURS!!!)
  2437.   
  2438.   and takes about 35 megabytes of disk space to build.  It is useful for
  2439.   non-HP machines, but some of the added features will only work under
  2440.   HP-UX.
  2441.   
  2442.   You will need to get patches to work with HP-UX 8.0 or on 700 series
  2443.   machines via e-mail from Darryl Okahata <darrylo@sr.hp.com>.
  2444.   
  2445. 96:  Where can I get Emacs for my PC running MS-DOS?
  2446.   
  2447.   * Demacs
  2448.   
  2449.     For 386 or 486 PCs running MS-DOS, there is a version of GNU Emacs
  2450.     called Demacs.  To get Demacs see question 122.
  2451.   
  2452.     From the announcement message:
  2453.   
  2454.       Demacs is almost a full set of GNU Emacs but does not support some
  2455.       features: asynchronous process, locking a file, etc.
  2456.   
  2457.       Demacs provides following DOS specific features:
  2458.   
  2459.         * File type: text or binary file translation.
  2460.         * "8-bit clean" display mode.
  2461.         * 8086 software interrupt call by int86 lisp function.
  2462.         * Machine specific features such as function key support.
  2463.         * File name completion with drive name.
  2464.         * Child process (suspend-emacs, call-process).
  2465.         * Enhanced dired mode which can work without 'ls.exe'.
  2466.   
  2467.       To our regret `shell-mode' does not work, but `compile' command works
  2468.       properly.
  2469.   
  2470.     Demacs was developed using an MS-DOS version of gcc called djgpp by
  2471.     D. J. Delorie <dj@ctron.com> which can compile and run large programs
  2472.     under MS-DOS, but not under MS Windows.  Demacs was derived from Nemacs
  2473.     rather than straight from GNU Emacs.
  2474.   
  2475.   There are a variety of other Emacses for MS-DOS including among them the
  2476.   following.
  2477.   
  2478.   * Freemacs
  2479.   
  2480.     Russ Nelson <nelson@sun.soe.clarkson.edu>, the author, describes
  2481.     Freemacs:
  2482.   
  2483.       * Freemacs is free, and it was designed from the start to be
  2484.         programmable.
  2485.       * Freemacs is the only IBM-PC editor that tries to be like GNU Emacs.
  2486.       * Freemacs can only edit files less than 64K in length.
  2487.       * Freemacs doesn't have undo.
  2488.   
  2489.     Carl Witty <cwitty@cs.stanford.edu> reviews Freemacs:
  2490.   
  2491.       Better is Freemacs, which follows the tradition of ITS and GNU Emacs
  2492.       by having an full, turing-complete extension language which is
  2493.       incompatible with everything else.  In fact, it's even closer to ITS
  2494.       Emacs than GNU Emacs is, because Mint (Freemacs' extension language)
  2495.       is absolutely illegible without weeks of study, much like TECO.
  2496.   
  2497.     To get Freemacs see question 123.
  2498.   
  2499.   * MicroEmacs
  2500.   
  2501.     MicroEmacs is a descendant of Microemacs {originally by Dave Conroy?}.
  2502.     It is programmable in a BASIC-like language.  Many of the keybindings
  2503.     are different from GNU Emacs.  The author is Daniel Lawrence             -
  2504.     <dan@mdbs.uucp, mdbs!dan@ee.ecn.purdue.edu>.  The latest version is 3.12 !
  2505.     and it is available via anonymous FTP:
  2506.   
  2507.       /midas.mgmt.purdue.edu:dist/uemacs312/   (outside business hours)      !
  2508.                                                                              !
  2509.     Version 3.12 includes Windows and Windows NT versions and a DOS          !
  2510.     protected mode (DMPI) version.                                           !
  2511.  
  2512.   * JOVE
  2513.   
  2514.     Another Emacs for small machines is JOVE (Jonathan's Own Version of
  2515.     Emacs).  The latest official version is 4.14.  There appears to be a
  2516.     newer version.  People rumored to be working on JOVE include Mark Moraes
  2517.     <moraes@cs.toronto.edu> and Bill Marsh <bmarsh@cod.nosc.mil>.  It is
  2518.     available via anonymous FTP:
  2519.   
  2520.       /cs.toronto.edu:/pub/moraes/jove4.14.7.tar.Z
  2521.   
  2522.   * MG
  2523.   
  2524.     MG is another descendant of Microemacs.  MG used to stand for
  2525.     MicroGNUEmacs, but now just stands for MG.  The look-and-feel of MG is
  2526.     intended to be close to that of GNU Emacs.  It is rumored that MG can
  2527.     not correctly edit files larger than memory.  The current version is
  2528.     rumored to be 2.  There is a version 3 in beta which works on the Amiga.
  2529.     It is also available via anonymous FTP:
  2530.   
  2531.       /ftp.white.toronto.edu:pub/mg/
  2532.       /wuarchive.wustl.edu:/mirrors/unix-c/editors/
  2533.       /procyon.cis.ksu.edu:  (source and executable)
  2534.   
  2535. 97:  Where can I get Emacs for my PC running Windows?
  2536.   
  2537.   I believe that no version of GNU Emacs runs under Windows.  Pierre Perret
  2538.   <pap@myths.az05.bull.com> has ported MicroEMACS 3.11c to Windows.
  2539.   
  2540.   Anonymous FTP:
  2541.     /ftp.cica.indiana.edu:pub/pc/win3/util/mewin10.zip
  2542.     /ftp.cica.indiana.edu:pub/pc/win3/util/mewin10s.zip
  2543.     /ftp.cica.indiana.edu:pub/pc/win3/util/mewri.zip
  2544.   
  2545. 98:  Where can I get Emacs for my PC running OS/2?
  2546.   
  2547.   From the OS/2 Programmer's FAQ:
  2548.   
  2549.     GNU Emacs 18.58 is available.  It requires you to have EMX installed
  2550.     on your machine, but it comes with all the EMX files you will need.
  2551.     Emacs is available on ftp-os2 in /pub/os2/2.0/gnu/emacs.  (If you want
  2552.     to recompile emacs, you will need the full EMX distribution see
  2553.     question 1.2.)
  2554.   
  2555.   The above quote may be out of date.  See the latest OS/2 Programmer's FAQ
  2556.   {perhaps in comp.os.os2.misc?} for the latest news.  Anonymous FTP info:
  2557.   
  2558.     /ftp-os2.nmsu.edu:pub/os2/2.0/gnu/emacs/
  2559.       ("ftp-os2" was formerly named "hobbes")
  2560.   
  2561.   Thanks go to Stephen Simpson <simpson@symcom.math.uiuc.edu>, Jonathan
  2562.   Miller <jem+@andrew.cmu.edu>, Terry Kane <terryk@cc.gatech.edu>, J. D.
  2563.   Baldwin <baldwin@csservera.usna.navy.mil>, and Ken Bass
  2564.   <kbass@gmuvax2.gmu.edu>.
  2565.   
  2566. 99:  Where can I get Emacs for my Atari ST?
  2567.   
  2568.   Emacs 18.57 is the latest version for TOS.  Stefan Mueller-Pfeiffer
  2569.   <iff327@zam001.zam.kfa-juelich.de> says:
  2570.   
  2571.     There is also a version for MiNT, the multitasking enhancement for
  2572.     ATARI's TOS, which behaves almost like EMACS on a "real computer".  This
  2573.     port was done by Erling Henanger <erlingh@idt.unit.no>.
  2574.   
  2575.   Anonymous FTP:
  2576.     /atari.archive.umich.edu:atari/gnustuff/tos/  (TOS Emacs 18.57)
  2577.     /atari.archive.umich.edu:atari/new/mntemacs.zoo  (MiNT Emacs)
  2578.     /cs.uni-sb.de:/pub/atari/emacs/
  2579.   
  2580. 100: Where can I get Emacs for my Amiga?
  2581.   
  2582.   All of the files are lharc-ed.
  2583.   
  2584.   Anonymous FTP:
  2585.     /oes.orst.edu:/pub/almanac/comp/amiga/software/gnuemacs-1.10/
  2586.   
  2587.   Via e-mail:
  2588.     To: almanac@oes.orst.edu
  2589.     body:
  2590.       mode uuencode
  2591.       send computer amiga software gnuemacs <file>
  2592.     <file> is replaced by one of the following:
  2593.       Required: d1.lzh d2.lzh
  2594.       Recommended: d3_info.lzh d3_infolisp.lzh
  2595.       Optional: d3_autoloaded.lzh d3_entertainmentetc.lzh
  2596.         d3_entertainmentlisp.lzh d4_src.lzh d5_languagelisp.lzh
  2597.         d5_viclone.lzh d6_gnulibsrc.lzh d6_mailpackage.lzh
  2598.         d6_mathpackage.lzh d6_misc.lzh d6_textformat.lzh
  2599.     The `d#' at the beginning of each file is its disk number, which is
  2600.     referred to by the documentation.
  2601.   
  2602. 101: Where can I get Emacs for my Apple computer?
  2603.   
  2604.   The FSF is a participant in a boycott of Apple because of Apple's "look
  2605.   and feel" copyright suits.  See the file etc/APPLE for more details.
  2606.   Because of this boycott, the FSF doesn't include support in GNU software
  2607.   for Apple computers such as the Macintosh.
  2608.   
  2609.   Please don't help people port or develop software for Apple computers.
  2610.   
  2611. 102: Where can I get Emacs with NeWS support?
  2612.   
  2613.   Chris Maio's NeWS support package for GNU Emacs is available via anonymous
  2614.   FTP:
  2615.   
  2616.     /columbia.edu:pub/ps-emacs.tar.Z
  2617.     /archive.cis.ohio-state.edu:pub/gnu/emacs/ps-emacs.tar.Z
  2618.   
  2619.   and via e-mail:
  2620.   
  2621.     To: archive-server@columbia.edu
  2622.     body: send NeWS emacs-support
  2623.   
  2624. 103: Where do I get Emacs that runs on VMS under DECwindows?
  2625.   
  2626.   Hal R. Brand <BRAND@addvax.llnl.gov> is said to have a VMS save set with a
  2627.   ready-to-run VMS version of Emacs 18.55 for X Windows.  It is available
  2628.   via anonymous FTP (addvax.llnl.gov).  It is possible that the VMS versions
  2629.   of Emacs at other sites have X support compiled in.  See etc/FTP for
  2630.   locations.
  2631.   
  2632.   Johan Vromans <jv@mh.nl> writes:
  2633.   
  2634.     Getting Emacs to run on VMS with DECwindows requires a number of changes
  2635.     to the sources. Fortunately this has been done already.  Joshua Marantz
  2636.     <josh@viewlogic.com> did most of the work for Emacs 18.52, and the mods
  2637.     were ported to 18.55 by Johan Vromans <jv@mh.nl>. Also included is the
  2638.     handling of DEC's LK201 keyboard.  You need to apply the changes to a
  2639.     fresh Emacs 18.55 distribution on a Unix system, and then you can copy
  2640.     the sources to VMS to perform the compile/link/build.
  2641.   
  2642.     The set of changes have been posted a number of times three times the
  2643.     last 12 months, so they should be widely available.
  2644.   
  2645.   Richard Levitte <levitte@e.kth.se> tells us that there are patches for
  2646.   Emacs 18.57, 18.58, and 18.59 available via e-mail:                        !
  2647.   
  2648.     To: EMACS-FILESERV@e.kth.se                                              !
  2649.     body: SEND EMACS-1857-PATCHES
  2650.       or: SEND EMACS-1858-PATCHES
  2651.       or: SEND EMACS-1859-PATCHES                                            +
  2652.                                                                              +
  2653.   or via anonymous ftp at:                                                   +
  2654.                                                                              +
  2655.       /lucy.merrimack.edu:emacs-1859-patches.share                           +
  2656.                                                                              +
  2657.   The set of patches weighs in at around 2.7 MB.                             +
  2658.  
  2659. 104: Where can I get modes for Lex, Yacc/Bison, Bourne Shell, Csh, C++,
  2660.  Objective C, Pascal, Awk?
  2661.   
  2662.   As usual, look in the Lisp Code Directory (see question 88).  For C++,
  2663.   if you use lisp-dir-apropos, you must specify the pattern like this:
  2664.   
  2665.     M-x lisp-dir-apropos RET c\+\+ RET
  2666.   
  2667. 105: What is the IP address of XXX.YYY.ZZZ?
  2668.   
  2669.   If you are at a site with a deficient nameserver, you may need to know
  2670.   the IP address of a host to FTP files from it.  You can get this
  2671.   information in two ways:
  2672.   
  2673.   * By telnet:
  2674.   
  2675.       telnet nic.ddn.mil hostnames (or `telnet 192.112.36.5 101')
  2676.       hname XXX.YYY.ZZZ
  2677.   
  2678.   * By e-mail:
  2679.   
  2680.       To: service@nic.ddn.mil
  2681.       Subject: host XXX.YYY.ZZZ
  2682.            or: whois XXX.YYY.ZZZ
  2683.            or: help
  2684.   
  2685.     or:
  2686.   
  2687.       To: resolve@cs.widener.edu
  2688.       body: site XXX.YYY.ZZZ
  2689.   
  2690.     Information from Brendan Kehoe <brendan@cs.widener.edu>.
  2691.   
  2692.  
  2693.  
  2694.  
  2695. Major Emacs Lisp Packages, Emacs Extensions, and Related Programs
  2696.  
  2697.   This section lists version numbers, FTP sites, mailing lists, newsgroups,
  2698.   and other information for many important packages, extensions, and related
  2699.   programs.  There is some overlap with the Lisp Code Directory, but these
  2700.   entries give more detailed information.
  2701.   
  2702.   If you know of any other packages that are so substantial that they
  2703.   deserve to be mentioned here, please tell me.  Having its own mailing list
  2704.   or newsgroup or more than half a megabyte of source code are good signs.
  2705.   
  2706. 106: VM (View Mail) -- another mail reader within Emacs
  2707.   
  2708.   Author: Kyle Jones <kyle@uunet.uu.net>
  2709.   Latest released version: 4.41
  2710.   Beta test version: 5.32
  2711.   Anonymous FTP:
  2712.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/vm-4.41.tar.Z
  2713.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/as-is/timer.shar.Z
  2714.     /ftp.uu.net:mail/vm-4.41.tar.Z
  2715.     /ftp.uu.net:mail/vm-5.32beta.tar.Z
  2716.   Newsgroups and mailing lists:
  2717.     Info-VM:
  2718.       gnu.emacs.vm.info
  2719.       info-vm-request@uunet.uu.net (for subscriptions)
  2720.       info-vm@uunet.uu.net (for submissions)
  2721.     Bug-VM:
  2722.       gnu.emacs.vm.bug
  2723.       bug-vm-request@uunet.uu.net (for subscriptions)
  2724.       bug-vm@uunet.uu.net (for submissions)
  2725.   
  2726. 107: Supercite -- mail and news citation package within Emacs
  2727.   
  2728.   Author: Barry Warsaw <bwarsaw@cen.com>
  2729.   Mailing list: supercite-request@anthem.nlm.nih.gov (for subscriptions)
  2730.                 supercite@anthem.nlm.nih.gov (for submissions)
  2731.   Latest version: 2.3                                                        !
  2732.   Anonymous FTP:
  2733.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/sc-2.3.tar.Z !
  2734.     /ftp.cme.nist.gov:pub/gnu/sc2.3.tar.Z                                    !
  2735.   Via e-mail:
  2736.     To: library@cme.nist.gov
  2737.     Subject: help
  2738.   NOTE: Superyank is an old version of Supercite.
  2739.   
  2740. 108: GNUS -- news reader within Emacs
  2741.   
  2742.   Author: Masanobu Umeda <umerin@mse.kyutech.ac.jp>
  2743.   Latest official version: 3.13
  2744.   Unofficial test version: 3.14.1
  2745.   Anonymous FTP:
  2746.     /aun.uninett.no:pub/gnus-3.14.1.tar.Z                                    -
  2747.     /wnoc-fuk.wide.ad.jp:pub/GNU/etc/gnus-3.14.1.tar.Z
  2748.     /liasun3.epfl.ch:pub/gnu/emacs/gnus-3.14.1.tar.Z
  2749.     /aix370.rrz.uni-koeln.de:/pub/gnu/emacs/gnus-3.14.1.tar.Z
  2750.     /funet.fi:/networking/news/gnus-3.14.1.tar.Z
  2751.     /src.doc.ic.ac.uk:/gnu/EmacsBits/gnus/gnus-3.14.1.tar.Z
  2752.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/gnus-3.13.tar.Z
  2753.   Newsgroups and mailing lists:
  2754.     English-only:    
  2755.       gnu.emacs.gnus
  2756.       info-gnus-english-request@cis.ohio-state.edu (for subscriptions)
  2757.       info-gnus-english@cis.ohio-state.edu (for submissions)
  2758.     Japanese (and some English):
  2759.       info-gnus-request@flab.fujitsu.co.jp (for subscriptions)
  2760.       info-gnus@flab.fujitsu.co.jp (for submissions)
  2761.   
  2762. 109: Calc -- poor man's Mathematica within Emacs
  2763.   
  2764.   Author: Dave Gillespie <daveg@csvax.cs.caltech.edu>
  2765.   Latest released version: 2.02
  2766.   Anonymous FTP:
  2767.     /csvax.cs.caltech.edu:pub/calc-2.02.tar.Z
  2768.     /prep.ai.mit.edu:pub/gnu/calc-2.02.tar.Z
  2769.   NOTE: Unlike Wolfram Research, Dave has never threatened to sue anyone
  2770.     for having a program with a similar command language to Calc.  :-)
  2771.   
  2772. 110: Calendar/Diary -- calendar manager within Emacs
  2773.   
  2774.   Author: Edward M. Reingold <reingold@cs.uiuc.edu>
  2775.   Latest version: 4.02
  2776.   Anonymous FTP:
  2777.     /emr.cs.uiuc.edu:pub/emacs/calendar {???}
  2778.   Via e-mail:
  2779.     To: reingold@cs.uiuc.edu
  2780.     Subject: send-emacs-cal
  2781.     Put your best internet e-mail address in the body.
  2782.   
  2783. 111: Ange-FTP -- transparent FTP access for Emacs's file access routines
  2784.   
  2785.   Author: Andy Norman <ange@hplb.hpl.hp.com>
  2786.   Latest official version: 4.20
  2787.   Anonymous FTP:
  2788.     /alpha.gnu.ai.mit.edu:ange-ftp/ange-ftp.tar.Z
  2789.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/ange-ftp.tar.Z
  2790.     /ugle.unit.no:pub/gnu/emacs-lisp/ange-ftp.tar.Z
  2791.   Mailing lists:
  2792.     ange-ftp-lovers-request@anorman.hpl.hp.com (for subscriptions)
  2793.     Ange-FTP Lovers:
  2794.       ange-ftp-lovers@anorman.hpl.hp.com (for submissions)
  2795.       /ftp.reed.edu:pub/mailing-lists/ange-ftp/ (archives)
  2796.     Ange-FTP Announcements:
  2797.       ange-ftp-lovers-announce@anorman.hpl.hp.com
  2798.   NOTE: now with support for accessing VMS, CMS, and MTS systems
  2799.   
  2800. 112: VIP -- vi emulation for Emacs
  2801.   
  2802.   Author: Aamod Sane <sane@cs.uiuc.edu>
  2803.   Latest released version: 4.3
  2804.   Anonymous FTP:
  2805.     /cs.uiuc.edu:pub/vip4.3.tar.Z
  2806.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/modes/vip-mode.tar.Z
  2807.   NOTE: This version much more closely emulates vi than the one
  2808.     distributed with Emacs.
  2809.   
  2810. 113: Dired -- better directory editor for Emacs
  2811.   
  2812.   Author: Sebastian Kremer <sk@thp.uni-koeln.de>
  2813.   Latest released version: 5.239
  2814.   Anonymous FTP: /ftp.cs.buffalo.edu:pub/Emacs/diredall.tar.Z
  2815.                  /ftp.uni-koeln.de:pub/gnu/emacs/diredall.tar.Z
  2816.   NOTE: This is a huge improvement over the Dired distributed with Emacs.
  2817.     This version will be in Emacs 19.
  2818.   
  2819. 114: AUC TeX -- enhanced LaTeX mode with debugging facilities
  2820.   
  2821.   Author: Kresten Krab Thorup <krab@iesd.auc.dk>
  2822.   Latest released version: 6.1 {???}
  2823.   Anonymous FTP:
  2824.     /iesd.auc.dk:pub/emacs-lisp/auctex_6_1d.tar.Z
  2825.     /iesd.auc.dk:pub/emacs-lisp/auctex.tar.Z
  2826.   Mailing list:
  2827.     auc-tex-request@iesd.auc.dk (for subscriptions)
  2828.     auc-tex@iesd.auc.dk (for submissions)
  2829.     auc-tex_mgr@iesd.auc.dk (auc-tex development team)
  2830.   
  2831. 115: Hyperbole -- extensible hypertext management system within Emacs
  2832.   
  2833.   Author: Bob Weiner <rsw@cs.brown.edu>
  2834.   Anonymous FTP:
  2835.     /wilma.cs.brown.edu:pub/hyperbole/ h*.tar.Z
  2836.   Mailing lists:
  2837.     hyperbole-announce -- Hyperbole release announcements only.
  2838.       Subscriptions:
  2839.         To: hyperbole-request@cs.brown.edu
  2840.         Subject: Add <mailbox@domain.name> to hyperbole-announce
  2841.     hyperbole -- Hyperbole discussion.
  2842.       Subscriptions:
  2843.         To: hyperbole-request@cs.brown.edu
  2844.         Subject: Add <mailbox@domain.name> to hyperbole
  2845.       Submissions:
  2846.         hyperbole@cs.brown.edu
  2847.       NOTE: Any member of the hyperbole mailing list is automatically a
  2848.         member of the hyperbole-announce mailing list.
  2849.     NOTE: No .UUCP or ! addresses are allowed on these mailing lists.
  2850.   
  2851. 116: Byte Compiler -- enhanced version of Emacs's byte compiler
  2852.   
  2853.   Author: Jamie Zawinski <jwz@lucid.com>,
  2854.           Hallvard B. Furuseth <hallvard@ifi.uio.no>
  2855.   Anonymous FTP:
  2856.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/bytecomp.tar.Z
  2857.     /ftp.uu.net:languages/elisp/packages/bytecomp.tar.Z
  2858.     /src.doc.ic.ac.uk:gnu/EmacsBits/elisp-archive/packages/bytecomp.tar.Z
  2859.   
  2860. 117: comint -- hugely enhanced shell mode and other derived modes
  2861.   
  2862.   Author: Olin Shivers <Olin.Shivers@cs.cmu.edu>
  2863.   Anonymous FTP:
  2864.     /cs.cmu.edu:/afs/cs.cmu.edu/user/shivers/lib/emacs/
  2865.       {comint,cmu{tex,shell,scheme,lisp},ml}.el
  2866.       (anonymous password must contain `@',
  2867.        cannot cd to intermediate directories)
  2868.   
  2869. 118: BBDB -- personal info rolodex integrated with mail/news readers
  2870.   
  2871.   Author: Jamie Zawinski <jwz@lucid.com>
  2872.   Latest released version: 1.47
  2873.   Anonymous FTP:
  2874.     /archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/bbdb.tar.Z
  2875.   Mailing list:
  2876.     info-bbdb-request@lucid.com (for subscriptions)
  2877.     info-bbdb@lucid.com
  2878.     bbdb-announce-request@lucid.com (to be informed of new releases)
  2879.   Note: BBDB does not work with VM 4.  It does work with VM 5, RMAIL, GNUS,
  2880.     and MH-E.
  2881.   
  2882. 119: Ispell -- spell checker in C with interface for Emacs
  2883.   
  2884.   Author: Geoff Kuenning <geoff@itcorp.com>
  2885.   Latest released version: 2.0.02
  2886.   Beta test version: 3.0 (9 patches)
  2887.   Anonymous FTP:
  2888.     /archive.cis.ohio-state.edu:/pub/gnu/ispell/ (version 2.0.02)
  2889.     /ftp.cs.ucla.edu:/pub/ispell/ (version 3.0, patches, dictionaries)
  2890.     /argus.math.orst.edu:pub/ispell/ (version 3.0, patches, dictionaries) 
  2891.     /ftp.th-darmstadt.de:pub/dicts/ispell/ (mirror of argus)
  2892.   NOTE: Do not send mail to Geoff asking him to send you the latest
  2893.     version of Ispell.  He does not have free e-mail.
  2894.   
  2895. 120: Epoch -- enhanced GNU Emacs with better X interface
  2896.   
  2897.   Latest released version: 4.2
  2898.   Anonymous FTP:
  2899.     /cs.uiuc.edu:pub/epoch-files/epoch/epoch-4.2.tar.Z
  2900.     /cs.uiuc.edu:pub/epoch-files/epoch/epoch-diff-4.1-4.2.tar.Z
  2901.     /src.doc.ic.ac.uk:gnu/epoch/
  2902.     /aix370.rrz.uni-koeln.de:gnu/emacs/epoch/
  2903.   Newsgroup and mailing lists:
  2904.     Epoch:
  2905.       gnu.emacs.epoch
  2906.       epoch-request@cs.uiuc.edu (for subscriptions)
  2907.       epoch@cs.uiuc.edu (for submissions)
  2908.     Epoch-Design:
  2909.       epoch-design-request@cs.uiuc.edu (for subscriptions)
  2910.       epoch-design@cs.uiuc.edu (for submissions)
  2911.   FAQ list:
  2912.     Maintainer: Marc Andreessen <marca@ncsa.uiuc.edu>
  2913.     Anonymous FTP:
  2914.       /rtfm.mit.edu:pub/usenet/news.answers/epoch-faq
  2915.       /ftp.ncsa.uiuc.edu:outgoing/marca/epoch/Epoch.FAQ
  2916.   
  2917. 121: Lucid GNU Emacs -- alternative Emacs 19 with better X interface
  2918.   
  2919.   Primary Maintainer: Jamie Zawinski <jwz@lucid.com>
  2920.   Other Developers: Eric Benson <eb@lucid.com>
  2921.                     Matthieu Devin <devin@lucid.com>
  2922.                     Harlan Sexton <hbs@lucid.com>
  2923.   Latest released version: 19.6                                              !
  2924.   Anonymous FTP:
  2925.     /labrea.stanford.edu:pub/gnu/lucid/lemacs-19.6.tar.Z  (source)           !
  2926.     /labrea.stanford.edu:pub/gnu/lucid/lemacs-19.6-sun4.tar.Z (Sun4binaries) !
  2927.   Newsgroup and mailing lists:
  2928.     Bugs:
  2929.       alt.lucid-emacs.bug                                                    +
  2930.       bug-lucid-emacs-request@lucid.com (for subscriptions)
  2931.       bug-lucid-emacs@lucid.com (for submissions)
  2932.     Help:
  2933.       alt.lucid-emacs.help                                                   +
  2934.       help-lucid-emacs-request@lucid.com (for subscriptions)
  2935.       help-lucid-emacs@lucid.com (for submissions)
  2936.   
  2937. 122: Demacs -- GNU Emacs altered to run on MS-DOS on 386/486 machines
  2938.   
  2939.   Authors: Manabu Higashida <manabu@sigmath.osaka-u.ac.jp>
  2940.            HIRANO Satoshi <hirano@tkl.iis.u-tokyo.ac.jp>
  2941.   Latest released version: 1.2.0
  2942.   Anonymous FTP:
  2943.     /utsun.s.u-tokyo.ac.jp:GNU/demacs/ (nearest to U.S.A.)
  2944.     /ftp.sigmath.osaka-u.ac.jp:pub/Msdos/Demacs/
  2945.     /wnoc-fuk.wide.ad.jp:pub/msdos/Demacs/
  2946.     /ftp.3com.com:pub/gnu/msdos/demacs/
  2947.     /mindseye.berkeley.edu:pub/kanji/demacs/
  2948.     /ftp.hawaii.edu:pub/editors/demacs.tar.Z
  2949.     /ftp.math.ksu.edu:pub/pc/demacs/
  2950.     /wsmr-simtel20.army.mil:pd1:<msdos.demacs> {ange-ftp syntax?}
  2951.     /ftp.uni-koeln.de:msdos/gnuprogs/dem120e.zip (executables, lisp-code, doc)
  2952.       (PLEASE USE ONLY OUTSIDE WORKING HOURS!)
  2953.     /ftp.uni-koeln.de:msdos/gnuprogs/dem120s.zip (sources, diffs)
  2954.       (PLEASE USE ONLY OUTSIDE WORKING HOURS!)
  2955.     /ftp.lysator.liu.se:pub/msdos/gnu/emacs/
  2956.     /mizar.docs.uu.se:pub/gnu/demacs/
  2957.     /iamsun.unibe.ch:PC/demacs/
  2958.     /flop.informatik.tu-muenchen.de:outgoing/demacs.tar
  2959.     /ftp.funet.fi:pub/gnu/emacs/demacs/
  2960.     /garbo.uwasa.fi:pc/editor/dem120e.zip
  2961.     /garbo.uwasa.fi:pc/editor/dem120s.zip
  2962.     /ftp.win.tue.nl:pub/gnu/demacs/
  2963.     /ugle.unit.no:pub/gnu/Demacs/
  2964.     {Does anyone know which sites have the Kanji version?}
  2965.   Via e-mail:
  2966.     From garbo.uwasa.fi:
  2967.       To: mailserv@garbo.uwasa.fi
  2968.       Subject: garbo-request
  2969.       Body: send pc/editor/dem120e.zip
  2970.             send pc/editor/dem120s.zip
  2971.             quit
  2972.   Downloading:
  2973.     EXEC-PC (Milwaukee, WI) 414-789-4210 (2400 bps)
  2974.       in the Mahoney MS-DOS file area in its Editors/wordprocessors
  2975.       library (F), named GNUEMACS.ZIP
  2976.     Channel 1 (Cambridge, MA) 617-345-8873 (9600 bps)
  2977.       in the New Uploads file area, named GNUEMACS.ZIP
  2978.   NOTE: Use the -d option of [pk]unzip for all .zip archives.  Some sites
  2979.     have Demacs lharc'ed.  If you need to find programs to unpack lharc and
  2980.     zip format archives, Chris Dean <ctdean@talaris.com> points out that you
  2981.     should see the comp.compression FAQ, available for FTP:
  2982.        /rtfm.mit.edu:pub/usenet/comp.compression/
  2983.   Mailing list:
  2984.     NOTE: There is no mailing list for Demacs.  However, there is a list
  2985.       for DJGPP, which is the environment that Demacs runs in.  Many
  2986.       Demacs problems are actually issues with DJGPP.
  2987.     DJGPP:
  2988.       Subscriptions:
  2989.         To: listserv@sun.soe.clarkson.edu
  2990.         body: add <your-address> djgpp
  2991.         or put `help' in the body.
  2992.         If this fails, mail to djgpp-request@sun.soe.clarkson.edu.
  2993.       Submissions:
  2994.         djgpp@sun.soe.clarkson.edu
  2995.   FAQ list:
  2996.     Maintainer: Dave Steibel <steibel@cs.umbc.edu>
  2997.     Anonymous FTP: algol.cs.umbc.edu:pub/demacs/demacs.faq
  2998.   
  2999. 123: Freemacs -- a small Emacs for MS-DOS
  3000.   
  3001.   Author: Russ Nelson <nelson@sun.soe.clarkson.edu>
  3002.   Latest released version: 1.6a
  3003.   Anonymous FTP:
  3004.     /simtel20.army.mil:PD:<MSDOS.FREEMACS> {ange-ftp syntax?}
  3005.     /grape.ecs.clarkson.edu:pub/msdos/freemacs/
  3006.   Via e-mail:
  3007.     To: archive-server@sun.soe.clarkson.edu
  3008.     body: help
  3009.   Via snail mail:
  3010.     address: Russell Nelson, 11 Grant St., Potsdam, NY 13676
  3011.     Send $15 copying fee, and specify preferred floppy disk format:
  3012.       5.25", 360K, or 3.50", 720K
  3013.   Mailing lists: 
  3014.     Subscriptions:
  3015.       To: listserv@sun.soe.clarkson.edu
  3016.       body: add <your-address> <name-of-list>
  3017.       or put `help' in the body.
  3018.     List distribution addresses:
  3019.       freemacs-announce@sun.soe.clarkson.edu
  3020.       freemacs-help@sun.soe.clarkson.edu
  3021.       freemacs-workers@sun.soe.clarkson.edu (send bug reports here)
  3022.   
  3023. 124: Patch -- program to apply "diffs" for updating files
  3024.   
  3025.   Author: Larry Wall <lwall@netlabs.com>
  3026.   Latest version: 2.0 patchlevel 12u8
  3027.     (This is the version that supports the new unified diff format.)
  3028.   Anonymous FTP:
  3029.     /prep.ai.mit.edu:pub/gnu/patch-2.0.12u8.tar.Z
  3030.     /prep.ai.mit.edu:pub/gnu/patch-2.0.12g8.tar.Z  (GNU version)
  3031.   
  3032.  
  3033.  
  3034. Changing Key Bindings and Handling Key Binding Problems
  3035.  
  3036. 125: How do I bind keys (including function keys) to commands?
  3037.   
  3038.   1. Find out what character sequence is generated by the keystroke sequence
  3039.      you wish to bind to a command.  See question 129 for how to do this.
  3040.      Keep in mind that the character sequences generated by a keystroke
  3041.      sequence varies from one terminal to another.  You may also get
  3042.      different results depending on what type of machine you are running on
  3043.      (see question 128).  For example, these keystrokes may generate these
  3044.      character sequences:
  3045.   
  3046.        F1        ---> ESC [ 2 2 4 z
  3047.        Shift-R10 ---> ESC O t
  3048.        L7        ---> ESC [ 3 1 ~
  3049.        Remove    ---> C-@
  3050.   
  3051.   2. Figure out what the Emacs Lisp syntax is for this character sequence.
  3052.      Inside an Emacs Lisp string, RET, LFD, DEL, ESC, SPC, and TAB are
  3053.      specified with `\r', `\n', `\C-?', `\e', ` ', and `\t'.  C-x is
  3054.      specified by `\C-x'.  M-x is specified the same was as "ESC x".
  3055.      (Control characters may also be specified as themselves, but I don't
  3056.      recommend it.)  An Emacs Lisp string begins and ends with the double
  3057.      quote character, `"'.  Here are some examples:
  3058.   
  3059.        ESC [ D       ---> "\e[D"
  3060.        ESC [ 2 2 7 z ---> "\e[227z"
  3061.        ESC [ 1 8 ~   ---> "\e[18~"
  3062.        C-M-r         ---> "\e\C-r"
  3063.   
  3064.   3. If some prefix of the character sequence is already bound, you must
  3065.      unbind it by binding it to `nil'.  For example:
  3066.   
  3067.        (global-set-key "\e[" nil)
  3068.   
  3069.   4. Pick a command to bind your key sequence to.  A command can be a
  3070.      "symbol" with a function definition, or a "lambda list", or a string
  3071.      (which is treated as a macro).  For example:
  3072.   
  3073.        (global-set-key "\e[D" 'backward-char)
  3074.        (global-set-key "\e[227~" "\exgoto-line\r") ; macro
  3075.   
  3076.   See `Key Bindings' and `Rebinding' in the online manual.
  3077.   
  3078.   In Emacs 19 (including Lucid Emacs), you can bind function key F24 like
  3079.   this:
  3080.   
  3081.     (global-set-key 'f24 'some-command)
  3082.   
  3083. 126: Why does Emacs say `Key sequence XXX uses invalid prefix characters'?
  3084.   
  3085.   A prefix of the character sequence you were trying to bind was already
  3086.   bound.  Usually, the sequence is "ESC [", in which case you should
  3087.   evaluate this form first:
  3088.   
  3089.     (define-key esc-map "[" nil)
  3090.   
  3091.   NOTE: By default, "ESC [" is bound to backward-paragraph, and if you do
  3092.   this you will lose this key binding.  For most people, this is not a
  3093.   problem.
  3094.   
  3095.   See question 125.
  3096.   
  3097. 127: Why doesn't this [terminal or window-system setup] code work in my
  3098.  .emacs file, but it works just fine after Emacs starts up?
  3099.   
  3100.   This is because you're trying to do something in your .emacs file that
  3101.   needs to be postponed until after the terminal/window-system setup code
  3102.   is loaded.  This is a result of the order in which things are done
  3103.   during the startup of Emacs.  For more details see question 135.
  3104.   
  3105.   In order to postpone the execution of Emacs Lisp code until after the
  3106.   terminal/window-system setup, set the value of the variable
  3107.   term-setup-hook or window-setup-hook to be a function which does what
  3108.   you want.
  3109.   
  3110.   See etc/OPTIONS for a complete explanation of what Emacs does every time
  3111.   it is started.
  3112.   
  3113.   Here is a simple example of how to set term-setup-hook:
  3114.   
  3115.     (setq term-setup-hook
  3116.       (function
  3117.        (lambda ()
  3118.          (cond ((string-match "\\`vt220" (or (getenv "TERM") ""))
  3119.             ;; Make vt220's "Do" key behave like M-x:
  3120.             (define-key CSI-map "29~" 'execute-extended-command))
  3121.            ))))
  3122.   
  3123. 128: How do I use function keys under X Windows?
  3124.   
  3125.   This depends on whether you are running Emacs inside a terminal emulator
  3126.   window, or whether you are allowing Emacs to create its own X window.
  3127.   You can tell which you are doing by noticing whether Emacs creates a new
  3128.   window when you start it.
  3129.   
  3130.   If you are running Emacs inside a terminal emulator window, then it
  3131.   behaves exactly as it does on any other tty.  In this case, for function
  3132.   keys to be useful, they must generate character sequences that are sent
  3133.   to the programs running inside the window as input.  The `xterm' program
  3134.   has two different sets of character sequences that it generates when
  3135.   function keys are pressed, depending on the sunFunctionKeys X resource
  3136.   and the -sf and +sf command line options.  (To find out what these key
  3137.   sequences are, see question 129.)  In addition, with xterm,
  3138.   you can override what key sequence a specific function key (or any other
  3139.   key) will generate with the `translations' resource.  This, for example:
  3140.   
  3141.     XTerm.VT100.Translations: #override \
  3142.       <KeyPress>F1: string(0x1b) string("[xyzzy")
  3143.   
  3144.   makes the function key F1 generate the character sequence "ESC [xyzzy".
  3145.   
  3146.   On the other hand, if Emacs is managing its own X window, the following
  3147.   description applies.  Emacs receives `KeyPress' events from the X server
  3148.   when a key is pressed while the keyboard focus is in its window.  The
  3149.   KeyPress event contains an X "keysym" code, which is simply an arbitrary
  3150.   number corresponding to the name of the keysym, and information on which
  3151.   "modifiers" such as `control' and `shift' are active.  For example, the
  3152.   `Tab' keysym is 0xff09.  (Generally, a key on the keyboard will generate a
  3153.   keysym whose name is the same as the label on the key, ie. the `Tab' key
  3154.   will normally generate the `Tab' keysym.  This can be changed with the
  3155.   xmodmap program.)  Emacs recognizes all the keysyms that correspond to
  3156.   standard ASCII characters and internally uses the ASCII character instead.
  3157.   
  3158.   (WARNING: I am about to describe a gross, disgusting hack to you, have
  3159.   your barf bag ready.)
  3160.   
  3161.   When Emacs receives the X keysym of one of the arrow keys, it behaves
  3162.   the same as if it had received a letter key with the control modifier
  3163.   down as follows (this is hard-coded):
  3164.   
  3165.     Up    becomes C-p
  3166.     Down  becomes C-n
  3167.     Right becomes C-f
  3168.     Left  becomes C-b
  3169.   
  3170.   The way Emacs treats other keysyms depends on what kind of machine it was
  3171.   compiled on.  The type of the display machine is irrelevant!  Function
  3172.   keys are mapped internally to escape sequences, while other keys are
  3173.   completely ignored.
  3174.   
  3175.   1. If compiled on a Sun, Emacs recognizes these X keysyms that
  3176.      are normally on a Sun keyboard:
  3177.   
  3178.        F1 through F9
  3179.        L1 through L10 (same as F11 through F20)
  3180.        R1 through R15 (same as F21 through F35)
  3181.      (The keys labelled R8, R10, R12, and R14 usually are mapped to the
  3182.       X keysyms Up, Left, Right, and Down.)
  3183.        Break (the `Alternate' key is given this keysym)
  3184.   
  3185.      These keys work like Sun function keys.  When Emacs recieves the
  3186.      keysym, it will internally use character sequences that look like "ESC
  3187.      [ ### z", where ### is replaced by a number.  The character sequences
  3188.      are identical to those generated by Sun's keyboard under SunView.  Any
  3189.      function key not listed above generates "ESC [ - 1 z".
  3190.   
  3191.      In order to use these key sequences, they should be bound to commands
  3192.      using the standard key binding methods, just as if Emacs were running
  3193.      on a regular terminal.
  3194.   
  3195.      WARNING: F11 and L1 are the same keysym in X, as are F12 and L2, etc.
  3196.      {Yes, this is stupid.  Complain to the X consortium.}
  3197.   
  3198.   2. If not compiled on a Sun, the function keys will appear to Emacs in a
  3199.      way remarkably similar to the keys of a DEC LK201 keyboard (used on
  3200.      some VT series terminals).  These X keysyms will be recognized:
  3201.   
  3202.        F1 through F20
  3203.        Help (treated same as F15)
  3204.        Menu (treated same as F16, is the LK201 `Do' key)
  3205.        Find
  3206.        Insert (LK201 `Insert Here' key)
  3207.        Select
  3208.        Prior (LK201 `Prev Screen' key *** ONLY IN 18.58 AND LATER ***)
  3209.        Next (LK201 `Next Screen' key *** ONLY IN 18.58 AND LATER ***)
  3210.   
  3211.      And finally, the LK201 key labelled `Remove' (or `Delete') is often
  3212.      mapped to the Delete keysym which generates the DEL character (C-?)
  3213.      instead of the key sequence given by the LK201 `Remove' key.  It may
  3214.      also be mapped to some other keysym, such as `_Remove', in which case
  3215.      you can't use it from within Emacs at all.
  3216.   
  3217.      Each function key will be internally converted to a character sequence
  3218.      that looks like "ESC [ ## ~", where ## is replaced by a number.  The
  3219.      character sequences are identical to those generated by a LK201
  3220.      keyboard.  Any function key not listed above generates "ESC [ - 1 ~".
  3221.   
  3222.   For the complete list of the numbers which are generated by the function
  3223.   keys, look in the file src/x11term.c at the definitions of the function
  3224.   stringFuncVal.
  3225.   
  3226.   If you are running Emacs on a Sun machine, even if your X display is
  3227.   running on a non-Sun machine (eg., an X terminal), you get the setup
  3228.   described above for Suns.  The determining factor is what type of
  3229.   machine Emacs is running (was compiled) on, not what type of machine
  3230.   your X display is on.
  3231.   
  3232.   If you have function keys not listed above on your keyboard, you can use
  3233.   `xmodmap' to change their keysym assignments to get keys that Emacs will
  3234.   recognize, but that may screw up other programs.
  3235.   
  3236.   X resources are not used by Emacs to affect the key sequences generated.
  3237.   In particular, there are no X key "translations" for Emacs.
  3238.   
  3239.   If you have function keys not listed above and you don't want to use
  3240.   xmodmap to change their names, you might want to make a modification to
  3241.   your Emacs.  Johan Vromans <jv@mh.nl> has made available a patch for Emacs
  3242.   that adds the x-rebind-key function of Epoch to Emacs 18.58.  This allows
  3243.   another layer of key rebinding before Emacs even sees the keys, and in
  3244.   this layer you can rebind all of the keys and modifier combinations as
  3245.   well.
  3246.   
  3247.   Anonymous FTP:
  3248.     /ftp.eu.net:gnu/emacs/FP-Xfun.Z
  3249.     /ftp.urc.tue.nl:pub/tex/emacs/FP-Xfun
  3250.   
  3251.   Johan Vromans explains what this buys for you:
  3252.   
  3253.     After implementing this, all keyboard keys can be configured to send
  3254.     user definable sequences, eg.,
  3255.   
  3256.       (x-rebind-key "KP_F1" 0 "\033OP")
  3257.   
  3258.     This will have the keypad key PF1 send the sequence "ESC O P", just like
  3259.     an ordinary VT series terminal.
  3260.   
  3261. 129: How do I tell what characters my function or arrow keys emit?
  3262.   
  3263.   Use this function by Randal L. Schwartz <merlyn@iwarp.intel.com>:
  3264.   
  3265.     (defun see-chars ()
  3266.       "Displays characters typed, terminated by a 3-second timeout."
  3267.       (interactive)
  3268.       (let ((chars "")
  3269.         (inhibit-quit t))
  3270.     (message "Enter characters, terminated by 3-second timeout.")
  3271.     (while (not (sit-for 3))
  3272.       (setq chars (concat chars (list (read-char)))
  3273.         quit-flag nil))        ; quit-flag maybe set by C-g
  3274.     (message "Characters entered: %s" (key-description chars))))
  3275.   
  3276.   Alternatively, use the "C-h l" view-lossage command, which will display
  3277.   the last 100 characters Emacs has seen in its input stream.  Kevin
  3278.   Gallagher <kgallagh@digi.lonestar.org> suggests typing some unique string
  3279.   like "wxyz", typing the key in question, then typing "C-h l".  The
  3280.   characters that appear between "wxyz" and "C-h l" were generated by the
  3281.   key.
  3282.   
  3283. 130: How do I set the X key "translations" for Emacs?
  3284.   
  3285.   Sorry, you can't; there are no "translations" to be set.  Emacs is not
  3286.   written using the Xt library.  The only way to affect the behavior of keys
  3287.   within Emacs is through `xmodmap' (outside Emacs) or `define-key' (inside
  3288.   Emacs).
  3289.   
  3290. 131: How do I handle C-s and C-q being used for flow control?
  3291.   
  3292.   C-s and C-q are used in the XON/XOFF flow control protocol.  This screws
  3293.   up Emacs because it binds these characters to commands.  Also, by default
  3294.   Emacs will not honor them as flow control characters and may overwhelm
  3295.   output buffers.  Sometimes, intermediate software using XON/XOFF flow
  3296.   control will prevent Emacs from ever seeing C-s and C-q.
  3297.   
  3298.   Possible solutions:
  3299.   
  3300.   * Disable the use of C-s and C-q for flow control.
  3301.   
  3302.     You need to determine what is the cause of the flow control.
  3303.   
  3304.     * your terminal
  3305.   
  3306.       Your terminal may use XON/XOFF flow control to have time to display
  3307.       all the characters it receives.  For example, VT series terminals do
  3308.       this.  It may be possible to turn this off from a setup menu.  For
  3309.       example, on a VT220 you may select `No XOFF' in the setup menu.  This
  3310.       is also true for some terminal emulation programs on PCs.
  3311.   
  3312.       When you turn off flow control at the terminal, you will also need to
  3313.       turn it off at the other end, which might be at the computer you are
  3314.       logged in to or at some terminal server in between.
  3315.   
  3316.       If you turn off flow control, characters may be lost; using a printer
  3317.       connected to the terminal may fail.  You may be able to get around
  3318.       this problem by modifying the `termcap' entry for your terminal to
  3319.       include extra NUL padding characters. 
  3320.   
  3321.     * a modem
  3322.   
  3323.       If you are using a dialup connection, the modems may be using XON/XOFF
  3324.       flow control.  I don't know how to get around this.
  3325.   
  3326.     * a router or terminal server
  3327.   
  3328.       Some network box between the terminal and your computer may be using
  3329.       XON/XOFF flow control.  It may be possible to make it use some other
  3330.       kind of flow control.  You will probably have to ask your local
  3331.       network experts for help with this.
  3332.   
  3333.     * tty and/or pty devices
  3334.   
  3335.       If your connection to Emacs goes through multiple tty and/or pty
  3336.       devices, they may be using XON/XOFF flow control even when it is not
  3337.       necessary.
  3338.   
  3339.       Eirik Fuller <eirik@theory.tn.cornell.edu> writes:
  3340.   
  3341.         Some versions of `rlogin' (and possibly telnet) do not pass flow
  3342.         control characters to the remote system to which they connect.  On
  3343.         such systems, Emacs on the remote system cannot disable flow control
  3344.         on the local system.  Sometimes `rlogin -8' will avoid this problem.
  3345.   
  3346.         One way to cure this is to disable flow control on the local host
  3347.         (the one running rlogin, not the one running rlogind) using the stty
  3348.         command, before starting the rlogin process.  On many systems, `stty
  3349.         start u stop u' will do this.
  3350.   
  3351.         Some versions of `tcsh' will prevent even this from working.  One
  3352.         way around this is to start another shell before starting rlogin,
  3353.         and issue the stty command to disable flow control from that shell.
  3354.   
  3355.       Use `stty -ixon' instead of `stty start u stop u' on some systems.
  3356.   
  3357.   * Make Emacs speak the XON/XOFF flow control protocol.
  3358.   
  3359.     You can make Emacs treat C-s and C-q as flow control characters by
  3360.     evaluating this form:
  3361.   
  3362.       (set-input-mode nil t)
  3363.   
  3364.     If you are fixing this for yourself, simply put the form in your .emacs
  3365.     file.  If you are fixing this for your entire site, the best place to
  3366.     put it is unclear.  I don't know if this has any effect when used in
  3367.     lisp/site-init.el when building Emacs; I've never tried that.  {Can
  3368.     someone tell me whether it works?}  Putting things in users' .emacs files
  3369.     has a number of problems.
  3370.   
  3371.     Putting this form in lisp/default.el has the problem that if the user's
  3372.     .emacs file has an error, this will prevent lisp/default.el from being
  3373.     loaded and Emacs may be unusable for the user, even for correcting their
  3374.     .emacs file (unless they're smart enough to move it to another name).  A
  3375.     possible solution is to initially disable C-s and C-q by setting
  3376.     keyboard-translate-table in lisp/site-init.el, either with swap-keys
  3377.     (see question 136) or with the following form:
  3378.   
  3379.       ;; by Roger Crew <crew@cs.stanford.edu>:
  3380.       (setq keyboard-translate-table
  3381.             "\C-@\C-a\C-b\C-c\C-d\C-e\C-f\C-g\C-h\C-i\C-j\C-k\C-l\C-m\C-n\C-o\C-p\C-^\C-r\C-\\\C-t\C-u\C-v\C-w\C-x\C-y\C-z\C-[\C-s\C-]\C-q\C-_")
  3382.   
  3383.     This will at least prevent Emacs from being confused by the flow control
  3384.     characters, even if lisp/default.el cannot be loaded.  Then, in
  3385.     lisp/default.el, enable XON/XOFF flow control with set-input-mode.
  3386.   
  3387.   For further discussion of this issue, read the file PROBLEMS in the
  3388.   Emacs distribution.
  3389.   
  3390. 132: How do I use commands bound to C-s and C-q (or any key) if these keys
  3391.  are filtered out?
  3392.   
  3393.   I suggest swapping C-s with C-\ and C-q with C-^:
  3394.   
  3395.     (swap-keys ?\C-s ?\C-\\)
  3396.     (swap-keys ?\C-q ?\C-^)
  3397.   
  3398.   See question 136 for the implementation of swap-keys.  This method
  3399.   has the advantage that it simultaneously swaps the characters everywhere
  3400.   throughout Emacs, while just switching the keybindings will miss important
  3401.   places where the character codes are stored (eg., the search-repeat-char
  3402.   variable, major mode keymaps, etc.).
  3403.   
  3404.   To do this for an entire site, you may want to swap the keys in
  3405.   lisp/default.el.  If only some of your users are connecting through
  3406.   XON/XOFF flow-controlled connections, you will want to do this
  3407.   conditionally.  I suggest pre-swapping them in lisp/site-init.el when
  3408.   Emacs is built, and then in lisp/default.el, if it is determined to be
  3409.   safe, they can be reenabled (being careful not to screw up any other key
  3410.   mappings users might have established using keyboard-translate-table).
  3411.   See question 131 for an easy way to pre-swap these keys.
  3412.   
  3413.   WARNING: If you do this for an entire site, the users will be confused by
  3414.   the disparity between what the documentation says and how Emacs actually
  3415.   behaves.
  3416.   
  3417. 133: Why does the `BackSpace' key invoke help?
  3418.   
  3419.   The BackSpace key (on every keyboard I've used) generates ASCII code 8.
  3420.   C-h sends the same code.  In Emacs by default C-h invokes help-command.
  3421.   This is intended to be easy to remember since the first letter of "help"
  3422.   is "h".  The easiest solution to this problem is to use C-h (and
  3423.   BackSpace) for help and DEL (the Delete key) for deleting the previous
  3424.   character.
  3425.   
  3426.   For many people this solution may be problematic:
  3427.   
  3428.   * They normally use BackSpace outside of Emacs for deleting the previous
  3429.     character typed.  This can be solved by making DEL be the command for
  3430.     deleting the previous character outside of Emacs.  This command will do
  3431.     this on many Unix systems:
  3432.   
  3433.       stty erase '^?'
  3434.   
  3435.   * The person may prefer using the BackSpace key for deleting the previous
  3436.     character because it is more conveniently located on their keyboard or
  3437.     because they don't even have a separate Delete key.  In this case, the
  3438.     BackSpace key should be made to behave like Delete.  There are several
  3439.     methods.
  3440.   
  3441.     * Under X Windows, the easiest solution is to change the BackSpace key
  3442.       into a Delete key like this:
  3443.   
  3444.         xmodmap -e "keysym BackSpace = Delete"
  3445.   
  3446.     * Some terminals (eg., VT3## terminals) allow the character generated by
  3447.       the BackSpace key to be changed from a setup menu.
  3448.   
  3449.     * You may be able to get a keyboard that is completely programmable.
  3450.   
  3451.     * Under X or on a dumb terminal, it is possible to swap the BackSpace
  3452.       and Delete keys inside Emacs:
  3453.   
  3454.         (swap-keys ?\C-h ?\C-?)
  3455.   
  3456.       See question 136 for the implementation of swap-keys.
  3457.   
  3458.     * Another approach is to switch keybindings and put help on "C-x h"
  3459.       instead:
  3460.   
  3461.         (global-set-key "\C-h" 'delete-backward-char)
  3462.         (global-set-key "\C-xh" 'help-command) ; override mark-whole-buffer
  3463.   
  3464.       Other popular key bindings for help are M-? and "C-x ?".
  3465.   
  3466.       WARNING: Don't try to bind DEL to help-command, because there are many
  3467.       modes that have local bindings of DEL that will interfere.
  3468.   
  3469. 134: Why doesn't Emacs look at the stty settings for Backspace vs. Delete?
  3470.   
  3471.   Good question!
  3472.   
  3473. 135: Why don't the arrow keys work?
  3474.   
  3475.   When Emacs starts up, it doesn't know anything about arrow keys at all
  3476.   (except when running under X, see question 128).  During the process of
  3477.   starting up, Emacs will load a terminal-specific initialization file for
  3478.   your terminal type (as determined by the environment variable TERM), if
  3479.   one exists.  This file has the responsibility for enabling the arrow keys.
  3480.   
  3481.   There are several things that can go wrong:
  3482.   
  3483.   1. There is no initialization file for your terminal.
  3484.   
  3485.      You can determine this by looking in the lisp/term directory.  If your
  3486.      terminal type (as determined by the TERM environment variable) is
  3487.      xxx-yy-z, then the first of these files in the lisp/term directory will
  3488.      be loaded as the terminal-specific initialization file: xxx-yy-z.el,
  3489.      xxx-yy.el, or xxx.el.
  3490.   
  3491.      There are two major cases of this problem:
  3492.   
  3493.      * Your terminal type is very similar to one that has an init file.
  3494.   
  3495.        In this case, there are several techniques suggested by Colin Jensen
  3496.        <cjensen@ampex.com>, Ben Liblit <Liblit@cs.psu.edu>, and Marc
  3497.        Auslander <marc@watson.ibm.com>:
  3498.   
  3499.        A. Add a symbolic link in lisp/term for your terminal type that
  3500.           points to the similar type.  For example, you could make VT102
  3501.           terminals work with this command:
  3502.   
  3503.             ln -s vt100.el vt102.el
  3504.   
  3505.           This fixes things for everyone on the system who uses the terminal
  3506.           type.
  3507.   
  3508.        B. If you can't do the solution in part A, you can add code to your
  3509.           term-setup-hook that loads the correct file like this:
  3510.   
  3511.             (setq term-setup-hook
  3512.                   (function
  3513.                    (lambda ()
  3514.                      (cond ((equal "vt102" (or (getenv "TERM") ""))
  3515.                             (load (concat term-file-prefix "vt100")))
  3516.                            (;; Code for other terminal types goes here ...
  3517.                             )))))
  3518.   
  3519.        C. If you use `tset' to set your TERM environment variable when you
  3520.           login, you can use the `-m' switch to tell tset to use a terminal
  3521.           type known by Emacs instead of another similar one.  For example,
  3522.           specifying this:
  3523.   
  3524.             tset ... -m 'dec-vt220:vt220' ...
  3525.   
  3526.           will make tset say you are on a `vt220' instead of a `dec-vt220'.
  3527.   
  3528.        D. Interactively, you can type "M-x load-library RET term/vt100" to
  3529.           load the terminal-specific initialization files for VT100
  3530.           terminals.
  3531.   
  3532.      * Your terminal type is not similar to one that has an init file.
  3533.   
  3534.        One can be made for your terminal, or you can just add code to your
  3535.        own .emacs to handle this problem for yourself.  For example, if your
  3536.        terminal's arrow keys send these character sequences:
  3537.   
  3538.          Up:    ESC [ A
  3539.          Down:  ESC [ B
  3540.          Right: ESC [ C
  3541.          Left:  ESC [ D
  3542.   
  3543.        then you can bind these keys to the appropriate commands with code in
  3544.        your .emacs like this:
  3545.   
  3546.          (setq term-setup-hook
  3547.                (function
  3548.                 (lambda ()
  3549.                   (cond ((string-match "\\`xyzzy" (or (getenv "TERM") ""))
  3550.                          ;; First, must unmap the binding for left bracket
  3551.                          (or (keymapp (lookup-key global-map "\e\["))
  3552.                              (define-key global-map "\e\[" nil))
  3553.                          ;; Enable terminal type xyzzy's arrow keys:
  3554.                          (define-key global-map "\e\[A" 'previous-line)
  3555.                          (define-key global-map "\e\[B" 'next-line)
  3556.                          (define-key global-map "\e\[C" 'forward-char)
  3557.                          (define-key global-map "\e\[D" 'backward-char))
  3558.                         ((string-match "\\`abcde" (or (getenv "TERM") ""))
  3559.                          ;; Do something different for terminal type abcde
  3560.                          ;; .....
  3561.                          )))))
  3562.   
  3563.      NOTE: You may have to restart Emacs to get changes to take effect.
  3564.   
  3565.      NOTE: Your arrow keys may send sequences beginning with "ESC O" when
  3566.      Emacs is running, even if they send sequences beginning with "ESC [" at
  3567.      all other times.  This is because Emacs uses any command there may be
  3568.      in your terminal's termcap entry for putting the terminal into
  3569.      "Application Keypad Mode".  Just map these sequences the same way as
  3570.      above.
  3571.   
  3572.   The next two cases are problems even if there is a initialization file for
  3573.   your terminal type.
  3574.   
  3575.   2. The initialization file for your terminal doesn't bind arrow keys.
  3576.   
  3577.      If your terminal type is `xterm', you will have to bind the arrow keys
  3578.      as in part 1 above, since the xterm.el file doesn't do anything useful.
  3579.      There may be other terminal types with the same problem.
  3580.   
  3581.   3. Your terminal's arrow keys send individual control characters.
  3582.   
  3583.      For example, the arrow keys on an ADM-3 send C-h, C-j, C-k, and C-l.
  3584.   
  3585.      There is not much Emacs can do in this situation, since all the control
  3586.      characters except for C-^ and C-\ are already used as Emacs commands.
  3587.      It may be possible to convince the terminal to send something else when
  3588.      you press the arrow keys; it is worth investigating.
  3589.   
  3590.      You have to make the hard choices of how to rebind keys to commands to
  3591.      make things work the way you want.  Another alternative is to start
  3592.      learning the standard Emacs keybindings for moving point around: C-b,
  3593.      C-f, C-p, and C-n.  Personally, I no longer use the arrow keys when
  3594.      editing because I have switched keyboards so many times.
  3595.   
  3596.   4. Your terminal's arrow keys send sequences beginning with "ESC [".
  3597.   
  3598.      Due to an extremely poor design decision (ie., these sequences are ANSI
  3599.      standard), none of the the terminal-specific initialization files that
  3600.      are distributed with Emacs will bind these character sequences to the
  3601.      appropriate commands by default.  (This also applies to any other
  3602.      function keys which generate character sequences starting with "ESC
  3603.      [".)  This is because it was deemed far more important to preserve the
  3604.      binding of M-[ to the backward-paragraph command.  It appears that this
  3605.      will change in Emacs 19.
  3606.   
  3607.      Some of the terminal-specific initialization files that come with Emacs
  3608.      provide a command enable-arrow-keys that will fix this problem.  To get
  3609.      this automatically invoked, put this in your .emacs:
  3610.   
  3611.        (setq term-setup-hook
  3612.          (function
  3613.           (lambda ()
  3614.         (if (fboundp 'enable-arrow-keys) (enable-arrow-keys)))))
  3615.   
  3616.      We put this in our lisp/default.el file, so users don't have to worry
  3617.      about it:
  3618.   
  3619.        ;; don't override a user's term-setup-hook
  3620.        (or term-setup-hook
  3621.        (setq term-setup-hook
  3622.          (function
  3623.           (lambda ()
  3624.             (and (fboundp 'enable-arrow-keys)
  3625.              ;; don't override a user key mapping
  3626.              (eq 'backward-paragraph (lookup-key esc-map "["))
  3627.              (enable-arrow-keys))))))
  3628.   
  3629.      If your terminal type is `sun', you should put this in your .emacs
  3630.      instead (or in addition to the above):
  3631.   
  3632.        (setq sun-esc-bracket t)
  3633.   
  3634.      It is possible that the terminal-specific initialization file for your
  3635.      terminal type was written locally and does not follow the rule
  3636.      mentioned above.  In this case you may need to inspect it to find out
  3637.      how to enable the arrow keys.  (Actually, if it was written locally, it
  3638.      probably enables the arrow keys by default.)
  3639.   
  3640. 136: How do I "swap" two keys?
  3641.   
  3642.   When Emacs receives a character, you can make Emacs behave as though it
  3643.   received another character by setting the value of
  3644.   keyboard-translate-table.  The following Emacs Lisp will do this for you,
  3645.   allowing you to "swap" keys.  After arranging for this Lisp to be
  3646.   evaluated by Emacs, you can evaluate `(swap-keys ?A ?B)' to swap A and B.
  3647.   
  3648.     (defun swap-keys (key1 key2)
  3649.       "Swap keys KEY1 and KEY2 using map-key."
  3650.       (map-key key1 key2)
  3651.       (map-key key2 key1))
  3652.   
  3653.     (defun map-key (from to)
  3654.       "Make key FROM behave as though key TO was typed instead."
  3655.       (setq keyboard-translate-table
  3656.         (concat keyboard-translate-table
  3657.             (let* ((i (length keyboard-translate-table))
  3658.                (j from)
  3659.                (k i)
  3660.                (str (make-string (max 0 (- j (1- i))) ?X)))
  3661.               (while (<= k j)
  3662.             (aset str (- k i) k)
  3663.             (setq k (1+ k)))
  3664.               str)))
  3665.       (aset keyboard-translate-table from to)
  3666.       (let ((i (1- (length keyboard-translate-table))))
  3667.     (while (and (>= i 0) (eq (aref keyboard-translate-table i) i))
  3668.       (setq i (1- i)))
  3669.     (setq keyboard-translate-table
  3670.           (if (eq i -1)
  3671.           nil
  3672.         (substring keyboard-translate-table 0 (1+ i))))))
  3673.   
  3674.   NOTE: You must evaluate the definition of these functions before calling
  3675.   them!  For example, list the function definitions before their use in your
  3676.   .emacs file.
  3677.   
  3678.   NOTE: These functions take two numbers as arguments.  The example above,
  3679.   `(swap-keys ?A ?B)' is actually `(swap-keys 65 66)', because `?A' is
  3680.   merely notation for 65, the ASCII value of `A'.
  3681.   
  3682.   NOTE: These functions only work for single characters.  You cannot swap
  3683.   two multi-character sequences.
  3684.   
  3685. 137: How do I produce C-XXX with my keyboard?
  3686.   
  3687.   For C-@ and C-^, often you can just type Control-2 and Control-6.  For
  3688.   C-_, you may have to hold down the shift key, typing Control-Shift-Hyphen.
  3689.   C-@ can often be generated by typing Control-Space.  C-@ is often called
  3690.   the NUL character, and has ASCII value 0.  C-_ can often be generated by
  3691.   typing Control-7 or Control-/.  C-? (aka DEL) may be generated by typing
  3692.   Shift-BackSpace or Control-BackSpace or a key labelled Delete or Del.
  3693.   
  3694.   Try Control with all of the digits on your keyboard to see what gets
  3695.   generated.
  3696.   
  3697. 138: What if I don't have a Meta key?
  3698.   
  3699.   Instead of typing M-a, you can type "ESC a" instead.  In fact, Emacs
  3700.   converts M-a internally into "ESC a" anyway (depending on the value of
  3701.   meta-prefix-char).
  3702.   
  3703. 139: What if I don't have an Escape key?
  3704.   
  3705.   Type C-[ instead.  This should send ASCII code 27 just like an Escape
  3706.   key would.  Try also C-;.
  3707.   
  3708. 140: How do I type DEL on PC terminal emulators?
  3709.   
  3710.   Some IBM PC compatibles do not have a key labeled `Del' or `Delete' {is
  3711.   this true?}.  Those that do generally have it in an inconvenient location.
  3712.   (Also, in some terminal emulators, the `Del' key does not transmit DEL.)
  3713.   The result is the standard "BackSpace invoking help" problem (see question
  3714.   133).
  3715.   
  3716.   The usual solution, suggested by Michael Covington
  3717.   <mcovingt@aisun1.ai.uga.edu>, is to somehow tell the terminal emulator
  3718.   program that BackSpace should transmit DEL.  Read the program's manual.
  3719.   Shift-BackSpace or Control-BackSpace may send DEL.  The `Del' key may only
  3720.   send DEL if the NumLock key hasn't been pressed.
  3721.   
  3722. 141: Can I make my `Compose Character' key behave like a Meta key?
  3723.   
  3724.   On a dumb terminal such as a VT220, no.  It is rumored that certain VT220
  3725.   clones could have their Compose key configured this way.  If you're using
  3726.   X, you might be able to do this with the `xmodmap' program (this is
  3727.   what I do).
  3728.   
  3729. 142: How do I bind a combination of modifier key and function key?
  3730.   
  3731.   Unless you're using Emacs under emacstool (or xvetool?), have a working
  3732.   version of x-rebind-key (see question 128), or are using Emacs 19 (Lucid
  3733.   Emacs), you can't do this with Emacs alone.
  3734.   
  3735.   If you are using emacstool, Emacs sees different character sequences for
  3736.   the combination of a modifier and a function key from what it sees for the
  3737.   function key alone.  See etc/emacstool.1 for more information.  Since
  3738.   Emacs sees different character sequences, you can bind these different
  3739.   sequences to different commands.
  3740.   
  3741.   If you are running Emacs inside a terminal emulator window like xterm, you
  3742.   can modify its translation tables to make it generate different character
  3743.   sequences for the combination of a modifier and a function key.  For
  3744.   example, this X resource setting:
  3745.   
  3746.     XTerm.VT100.Translations: #override \
  3747.       Shift<KeyPress>F1: string(0x1b) string("[xyzzy")
  3748.   
  3749.   makes Shift-F1 generate the character sequence "ESC [ xyzzy".  You can
  3750.   bind these character sequences in Emacs as normal.  Nick Ruprecht
  3751.   <ruprecht@informatik.uni-freiburg.de> has written an extensive X
  3752.   translation mapping for xterm that does this.  {Does this have an FTP
  3753.   site?}
  3754.   
  3755.   If you have x-rebind-key, you can have any arbitrary combination of
  3756.   modifiers with a key replaced by any sequence of "normal" characters.  For
  3757.   example, this makes Shift-Return behave as though you had typed "C-x C-e"
  3758.   (example from Jerry Graves):
  3759.   
  3760.     (x-rebind-key "Return" 'shift "\C-x\C-e")
  3761.   
  3762.   In Emacs 19 (Lucid Emacs), you can bind Meta-Left-Arrow like this (example
  3763.   from Jamie Zawinski):
  3764.   
  3765.     (global-set-key '(meta left) 'backward-word)
  3766.   
  3767.   With the last two methods, use `xmodmap' and `xev' to discover the keysym
  3768.   and modifier names.
  3769.   
  3770. 143: Why doesn't my Meta key work in an xterm window?
  3771.   
  3772.   Try all of these methods before asking for further help:
  3773.   
  3774.   * You may have big problems using `mwm' as your window manager.  {Does
  3775.     anyone know a good generic solution to allow the use of the Meta key in
  3776.     Emacs with mwm?}
  3777.   
  3778.   * For X11R4: Make sure it really is a Meta key.  Use `xev' to find out
  3779.     what keysym your Meta key generates.  It should be either Meta_L or
  3780.     Meta_R.  If it isn't, use xmodmap to fix the situation.
  3781.   
  3782.   * Make sure the pty the xterm is using is passing 8 bit characters.
  3783.     `stty -a' (or `stty everything') should show `cs8' somewhere.  If it
  3784.     shows `cs7' instead, use `stty cs8 -istrip' (or `stty pass8') to fix
  3785.     it.
  3786.   
  3787.   * If there is an rlogin connection between the xterm and the Emacs, the
  3788.     `-8' argument may need to be given to rlogin to make it pass all 8
  3789.     bits of every character.
  3790.   
  3791.   * If the Emacs is running under Ultrix, it is reported that evaluating
  3792.     (set-input-mode t nil) helps.
  3793.   
  3794.   * If all else fails, you can make xterm generate "ESC W" when you type
  3795.     M-W, which is the same conversion Emacs would make if it got the M-W
  3796.     anyway.  In X11R4, the following resource specification will do this:
  3797.   
  3798.       XTerm.VT100.EightBitInput: false
  3799.   
  3800.     (This changes the behavior of the insert-eight-bit action.)
  3801.   
  3802.     With older xterms, you can specify this behavior with a translation:
  3803.   
  3804.       XTerm.VT100.Translations: #override \
  3805.         Meta<KeyPress>: string(0x1b) insert()
  3806.   
  3807.     You might have to replace `Meta' with `Alt'.
  3808.   
  3809. 144: Why doesn't my ExtendChar key work as a Meta key under HP-UX 8.0?
  3810.   
  3811.   This is a result of an internationalization extension in X11R4 and the
  3812.   fact that HP is now using this extension.  Emacs assumes that
  3813.   XLookupString returns the same result regardless of the Meta key state
  3814.   which is no longer necessarily true.  Until Emacs is fixed, the temporary
  3815.   kludge is to run this command after each time the X server is started but
  3816.   preferably before any xterm clients are:
  3817.   
  3818.     xmodmap -e 'remove mod1 = Mode_switch'
  3819.   
  3820.   NOTE:  This will disable the use of the extra keysyms systemwide, which
  3821.   may be undesirable if you actually intend to use them.
  3822.   
  3823. 145: Where can I get key bindings to make Emacs emulate WordStar?
  3824.   
  3825.   There is a package `wordstar' by Jim Frost <jimf@saber.com> and
  3826.   `ws-mode.el' by Juergen Nickelsen <nickel@cs.tu-berlin.de>.  Check in the
  3827.   Emacs Lisp Archive (see question 89).
  3828.   
  3829. 146: Where can I get an XEDIT emulator for Emacs?
  3830.   
  3831.   This question comes up once every couple of months.  I have never seen a
  3832.   positive reply, so I presume no one has ever written one.
  3833.   
  3834.  
  3835.  
  3836. Using Emacs with Alternate Character Sets
  3837.  
  3838. 147: How do I make Emacs display 8-bit characters?
  3839.   
  3840.   There is a patch called the `8-bit ctl-arrow patch' that allows Emacs to
  3841.   display characters with codes from 128 to 255.  {The original appears to
  3842.   have been by Kenneth Cline <cline@proof.ergo.cs.cmu.edu>.} Partially based
  3843.   on Johan Widen's earlier work, Johan Vromans <jv@mh.nl> has updated this
  3844.   patch for Emacs 18.58 along with some other 8-bit improvements.
  3845.   
  3846.   Anonymous FTP:
  3847.     /ftp.eu.net:gnu/emacs/FP-EightBit.Z
  3848.     /ftp.urc.tue.nl:/pub/tex/emacs/FP-EightBit
  3849.     /cs.purdue.edu:pub/ygz/cemacs.tar.Z:cemacs/8bit-patch-18.57
  3850.     /sics.se:archive/emacs-18.55-8bit-diff
  3851.     /laas.laas.fr:pub/emacs/patch-8bit-18.55
  3852.     /laas.laas.fr:pub/emacs/patch-8bit-18.57
  3853.   
  3854.   Via e-mail:
  3855.     To: mail-server@sics.se
  3856.     body: send emacs-18.55-8bit-diff
  3857.   
  3858.   Anders Edenbrandt <anderse@dna.lth.se> has produced a more comprehensive
  3859.   patch for Emacs 18.59 that allows for 8-bit input and output.
  3860.   
  3861.   Anonymous FTP:
  3862.     /ftp.efd.lth.se:pub/gnu/emacs_8-bit.patch
  3863.  
  3864.   In the words of the author:
  3865.  
  3866.     With these patches, Emacs becomes fully 8-bit operational.  There is
  3867.     support for displaying 8-bit characters, as well as for entering such
  3868.     characters from the keyboard.  In addition, upcase/lowcase tranlatsion
  3869.     is supported, accented characters are recognized as "letters" (important
  3870.     when doing 'forward-word', for example), and text with 8-bit characters
  3871.     can be sorted correctly.
  3872.  
  3873.     A Meta-shift key can still be used, provided that you run in an
  3874.     environment where it is possible to distinguish between a character
  3875.     entered using the Meta-shift key and one entered directly. The diffs
  3876.     include patches to make this work under SunView (with emacstool) as
  3877.     well as under X.  If you can't use a Meta-shift key, you have to enter
  3878.     Meta-commands with the ESC-prefix.
  3879.  
  3880.   The most comprehensive patches for 8-bit output are by Howard Gayle
  3881.   (originally for Emacs 18.55.  These patches allow displaying any arbitrary
  3882.   string for a given 8-bit character (except TAB and C-j).  Also supported
  3883.   is defining the sorting order and the uppercase and lowercase
  3884.   translations.  It is reported that the 8-bit character support in Emacs 19
  3885.   is largely based on these patches.  Thomas Bellman
  3886.   <Bellman@lysator.liu.se> has updated these patches for Emacs 18.59.
  3887.   
  3888.   Anonymous FTP:
  3889.     /sics.se:archive/emacs-gayle.tar.Z  (patches for 18.55)
  3890.     /ftp.lysator.liu.se:pub/emacs/gayle-18.58.diff.tar.Z  (patches)
  3891.     /ftp.lysator.liu.se:pub/emacs/emacs-18.59-gayle.tar.Z  (patched Emacs)
  3892.   
  3893.   Epoch's 8-bit character support is based on Anders Edenbrandt's patches.
  3894.   Lucid Emacs has the ctl-arrow patch installed.  Nemacs displays 8-bit
  3895.   characters, and it may be useful for displaying the 8-bit ISO-8859
  3896.   alphabet, but I don't know for sure (see question 149).
  3897.   
  3898. 148: How do I input 8-bit characters?
  3899.   
  3900.   Minor modes for ISO Latin-1 that allow one to easily input this character
  3901.   set have been written by several people.  Such modes have been written by
  3902.   Matthieu Herrb <matthieu@laas.fr> (laas.laas.fr:pub/emacs/iso-latin-1.el),
  3903.   Johan Vromans <jv@mh.nl> {FTP site??}, and Marc Shapiro
  3904.   <shapiro@sor.inria.fr> {FTP site??}.
  3905.   
  3906.   These approaches differ from the one taken by Anders Edenbrandt in that
  3907.   his method uses direct 8-bit input, while these methods use a compose
  3908.   sequence for 8-bit characters.  {I have heard conflicting reports on
  3909.   whether this results in losing the Meta key.  Perhaps this depends on
  3910.   whether Emacs is running under X.  Can someone resolve this?}
  3911.   
  3912.   Karl Heuer <karl@haddock.ima.isc.com> is said to have a patch to allow
  3913.   8-bit input.  Georg-Wilhelm Koltermann <gwk@crmunich0.cray.com> also has a
  3914.   patch for either 18.57 or 18.58 that allows 8-bit input.
  3915.   
  3916.   Epoch comes with a patch that allows it to input 8-bit characters, but it
  3917.   is not enabled by default.  {Is this right?}
  3918.   
  3919.   Jamie Zawinski says:
  3920.   
  3921.     Lucid GNU Emacs allows the input of any ISO-8859/1 keysyms that your
  3922.     keyboard generates (see xmodmap), and contains a package that implements
  3923.     a DEC/OpenWindows-like "Compose" key for systems which don't have one.
  3924.   
  3925. 149: Where can I get an Emacs that can handle kanji characters?
  3926.   
  3927.   Nemacs 3.3.2 (Nihongo GNU Emacs) is a modified version of GNU Emacs 18.55
  3928.   that handles kanji characters.  It is available via anonymous FTP:
  3929.   
  3930.     /crl.nmsu.edu:pub/misc/nemacs-3.3.2.tar.Z
  3931.     /miki.cs.titech.ac.jp:JAPAN/nemacs/nemacs-3.3.2.tar.Z
  3932.   
  3933.   You might also need files for "wnn", a kanji input method
  3934.   (wnn-4.0.3{-README,.tar.Z} {on which machine?}).  You need a terminal (or
  3935.   terminal emulator) that can display text encoded in JIS, Shift-JIS, or EUC
  3936.   (Extended Unix Code), or the ability to run Nemacs as a direct X Window
  3937.   client.
  3938.   
  3939. 150: Where can I get an Emacs that can handle Chinese?
  3940.   
  3941.   `cemacs' by Stephen G. Simpson <simpson@math.psu.edu> is a patch to Emacs
  3942.   18.57 (the ctl-arrow patch) and some Emacs Lisp code that combined with
  3943.   Cxterm allows using Chinese characters.  It is available via anonymous
  3944.   FTP:
  3945.   
  3946.     /crl.nmsu.edu:pub/chinese/cemacs.tar.Z
  3947.     /cs.purdue.edu:pub/ygz/cemacs.tar.Z
  3948.   
  3949.   Cxterm is available from the same place:
  3950.   
  3951.     /cs.purdue.edu:pub/ygz/cxterm-11.5.1.tar.Z
  3952.   
  3953. 151: Where is an Emacs that can handle Semitic (right-to-left) alphabets?
  3954.   
  3955.   Joel M. Hoffman <joel@wam.umd.edu> writes:
  3956.   
  3957.     A couple of years ago a wrote a hebrew.el file that allows right-to-left
  3958.     editing of Hebrew.  I relied on the hardware to display the Hebrew
  3959.     letters, given the right codes, but not for any right-to-left support;
  3960.     the hardware also doesn't have to send any specific char. codes.  Emacs
  3961.     keeps track of when the user is typing Hebrew vs. English.  (The VT-*
  3962.     terminals in Israel contain built-in support for Hebrew.)
  3963.   
  3964.     To get it to work I had to modify only a few lines of GNU Emacs's source
  3965.     code --- just enough to make it 8-bit clean.
  3966.   
  3967.     [and in a separate message:]
  3968.   
  3969.     It doesn't produce time-order ["sefer" format] (I wouldn't recommend
  3970.     trying that with emacs, because converting time-order to screen-order
  3971.     with arbitrarily long lines is a bit tricky), but I also concocted a
  3972.     quick filter to convert screen-order into time-order.  I'll be happy to
  3973.     send you the requisite files if you want them.  If you're using it for
  3974.     anything large, however, you'll want something that works better.
  3975.   
  3976.   Joel Hoffman has also written a "bi-directional bi-lingual Emacs-like"
  3977.   editor for MS-DOS named Ibelbe (Itty Bitty Emacs-Like Bidirectional
  3978.   Editor).  Ibelbe is written in Turbo Pascal and comes with source code.
  3979.   Here is the description:
  3980.   
  3981.     Ibelbe looks like emacs (it even has a minibuffer and filename
  3982.     completion), and fully supports both right-to-left and left-to-right
  3983.     editing.  Other than an EGA monitor or better, no special hardware is
  3984.     required.  You will need an EGA Hebrew font to use Ibelbe with Hebrew.
  3985.   
  3986.   Anonymous FTP:
  3987.     /israel.nysernet.org:israel/msdos/ibelbe.zip
  3988.     /israel.nysernet.org:israel/msdos/hebfont.zip
  3989.   
  3990.   Joseph Friedman <yossi@deshaw.com, yossi@Neon.Stanford.EDU> has written
  3991.   patches for Emacs 18.55 and 18.58 that provide Semitic language support
  3992.   under X Windows.
  3993.   
  3994.   Warren Burstein <warren@itex.jct.ac.il> says he has mapped 7-bit keys by
  3995.   modifying self-insert-command "for Hebrew input on 7-bit keyboards".
  3996.   
  3997.   A good suggestion is to query archie for files named with `hebrew'.
  3998.  
  3999.  
  4000.  
  4001. Mail and News
  4002.  
  4003. 152: How do I change the included text prefix in mail/news followups?
  4004.   
  4005.   Many people want Emacs to prefix included text with something like ` > '
  4006.   instead of with three spaces.  One way is to change the code of the
  4007.   function `mail-yank-original' in lisp/sendmail.el that prefixes with
  4008.   spaces.  A more flexible solution is to use Supercite, which provides wide
  4009.   configurability in how you format included text in replies.  See question
  4010.   107.  Both of these solutions work for RMAIL and GNUS.
  4011.   
  4012.   A related problem is how to prevent Emacs from including various headers
  4013.   of the replied-to message.  For this, you should set the value of
  4014.   mail-yank-ignored-headers, which takes a regexp value.
  4015.   
  4016. 153: How do I save a copy of outgoing mail?
  4017.   
  4018.   Two methods:
  4019.   
  4020.   1. (setq mail-self-blind t) will result in a `BCC:' header line with your
  4021.      address being added to mail composition buffers.  This will cause the
  4022.      mail system to send a copy of the mail back to you.
  4023.   
  4024.   2. (setq mail-archive-file-name (expand-file-name "~/outgoing")) will
  4025.      result in an `FCC:' header line with the pathname of ~/outgoing being
  4026.      added to mail composition buffers.  When you send the mail, Emacs will
  4027.      save a copy of the mail in the file ~/outgoing and then strip off the
  4028.      `FCC:' line before actually sending.
  4029.   
  4030.      WARNING: There is a bug in Emacs 18.58 that prevents mail readers such
  4031.      as RMAIL from reading the saved mail messages individually.  See
  4032.      question 155.
  4033.   
  4034.      WARNING: If you are visiting the file ~/outgoing at the time you send
  4035.      the mail, this can cause a variety of horrible problems.  Jamie
  4036.      Zawinski has written a solution for this.
  4037.   
  4038.   It does not work to put `set record filename' in the .mailrc file.
  4039.   
  4040. 154: Why doesn't Emacs expand my aliases when sending mail?
  4041.   
  4042.   * You must separate multiple addresses in the headers of the mail buffer
  4043.     with commas.  This is because Emacs supports RFC822 standard addresses
  4044.     like this one:
  4045.   
  4046.       To: Willy Smith <wks@xpnsv.lwyrs.com>
  4047.   
  4048.     However, you do not need to separate addresses with commas in your
  4049.     .mailrc file.
  4050.   
  4051.     WARNING: Emacs breaks up aliases in the .mailrc file into multiple
  4052.     addresses both on commas and on whitespace, regardless of any use of
  4053.     quotes.  This is probably a bug.  You can get around this by directly
  4054.     setting the value of mail-aliases.
  4055.   
  4056.   * Emacs normally only reads the `.mailrc' file once per session, when you
  4057.     start to compose your first mail message.  If you edit .mailrc, you can
  4058.     type "M-ESC (build-mail-aliases) RET" to make Emacs reread .mailrc.
  4059.     (You have to include the parentheses where they are shown!)
  4060.   
  4061.   * Emacs does not interpret vendor-specific additions to the format of the
  4062.     .mailrc file such as the `source' command.  It also ignores any `set'
  4063.     commands.  The only commands it looks at are `alias' and `group'
  4064.     commands.
  4065.   
  4066. 155: Why does RMAIL think all my saved messages are one big message?
  4067.   
  4068.   There is a bug for FCC-ed messages in Emacs 18.58 where it adds a timezone
  4069.   on the "From " line after the year instead of before the year.  (Before it
  4070.   didn't add the timezone at all.)  This is incompatible with the standard
  4071.   format for the "From " line, and RMAIL in particular can no longer
  4072.   distinguish between the messages.  Karl Berry <karl@cs.umb.edu>, Felix Lee
  4073.   <flee@cs.psu.edu>, Nick Gianniotis <nico@japan.sbi.com> and many
  4074.   others have all posted patches for this.  Karl's is the simplest and just
  4075.   stops Emacs from adding the timezone:
  4076.   
  4077.     >*** ./ORIG/sendmail.el    Tue Jan 28 16:22:56 1992
  4078.     >--- ./sendmail.el    Thu May 14 18:23:48 1992
  4079.     >***************
  4080.     >*** 285,287 ****
  4081.     >        (insert "\nFrom " (user-login-name) " "
  4082.     >!           (current-time-string) " " timezone "\n")
  4083.     >        (insert-buffer-substring rmailbuf)
  4084.     >--- 285,287 ----
  4085.     >        (insert "\nFrom " (user-login-name) " "
  4086.     >!           (current-time-string) "\n")
  4087.     >        (insert-buffer-substring rmailbuf)
  4088.   
  4089. 156: How can I sort the messages in my RMAIL folder?
  4090.   
  4091.   Use rmailsort.el by Masanobu Umeda.
  4092.   
  4093. 157: Why does RMAIL need to write to /usr/spool/mail?
  4094.   
  4095.   This is the behavior of the `movemail' program which RMAIL uses.  This
  4096.   indicates that movemail is configured to use lock files.
  4097.   
  4098.   RMS writes:
  4099.   
  4100.     Certain systems require lock files to interlock access to mail files.
  4101.     On these systems, movemail must write lock files, or you risk losing
  4102.     mail.  You simply must arrange to let movemail write them.
  4103.   
  4104.     Other systems use the flock system call to interlock access.  On these
  4105.     systems, you should configure movemail to use flock.
  4106.   
  4107. 158: How do I recover my mail files after RMAIL munges their format?
  4108.   
  4109.   Users who just want to try RMAIL out to see how it works end up trapped
  4110.   using it because saved mail in their `mbox' file has been converted into
  4111.   an incompatible format (BABYL) that only RMAIL understands.  RMAIL
  4112.   provides no obvious way to reverse this transformation.  Kyle Jones has
  4113.   aptly named this "the great Emacs Mail Eating Monster".  To convert a mail
  4114.   file back to standard Unix format, there are several methods:
  4115.   
  4116.   * Use the rmail-output ("C-o") command within RMAIL on each message in the
  4117.     file.  First use M-x rmail or M-x rmail-input to visit the RMAIL file in
  4118.     Rmail mode.  Type "1 j" to go to the first message.  Use the C-o command
  4119.     to output the message to a Unix format file.  Type "n" to go to the next
  4120.     message.  Repeat.
  4121.   
  4122.   * If the file contains hundreds of messages, you may not want to repeat
  4123.     this for all of them.  Instead of the above, after getting to the first
  4124.     message type this (where "mbox" is the file you want to put the messages
  4125.     in):
  4126.   
  4127.       C-x ( C-o mbox RET M-s ^From: RET M-0 C-x )
  4128.   
  4129.     (The rmail-search command ("M-s") is used instead of just "n" because it
  4130.     is the only command which will cause an error when it reaches the last
  4131.     message in the file, which is necessary to terminate the keyboard macro.
  4132.     This will fail if there are messages in the file that don't have a
  4133.     `From:' header.  This assumes rmail-delete-after-output is nil.)
  4134.   
  4135.     It is wise to save a copy of the RMAIL file first, in case you make a
  4136.     mistake.
  4137.   
  4138.   * There are software packages available for converting files or even
  4139.     entire directories of BABYL files to standard Unix format.  These are
  4140.     helpful in this situation, but are intended mainly for people who have
  4141.     used RMAIL for a long time and are converting to some other mail reader.
  4142.     Lookup `rmail', `vm', and `babyl' in the Emacs Lisp Archive (see
  4143.     question 89).
  4144.   
  4145.   You may wish to disable RMAIL to avoid accidentally destroying your mbox
  4146.   file (I have this in my .emacs):
  4147.   
  4148.     (put 'rmail 'disabled t)        ; avoid mbox destruction
  4149.   
  4150. 159: How do I make Emacs automatically start my mail/news reader?
  4151.   
  4152.   Example:
  4153.   
  4154.     emacs -f gnus
  4155.   
  4156.   Also:
  4157.   
  4158.     alias gnus 'emacs -f gnus'
  4159.   
  4160.   It is probably unwise to automatically start your mail or news reader from
  4161.   your .emacs file.  This would cause problems if you needed to run two
  4162.   copies of Emacs at one time.  Also, this would make it difficult for you
  4163.   to start Emacs quickly when you needed to.
  4164.   
  4165. 160: How do I read news under Emacs?
  4166.   
  4167.   There are at least three news reading packages that operate inside Emacs.
  4168.   `rnews' comes with Emacs.  GNUS and Gnews come separately.  rnews will
  4169.   be replaced by GNUS in Emacs 19.
  4170.   
  4171.   rnews works only with a local news spool directory.  Both GNUS and Gnews
  4172.   handle reading news remotely via NNTP in addition to reading from a local
  4173.   news spool.  GNUS supports reading mail stored in MH folders or articles
  4174.   saved by GNUS.
  4175.   
  4176.   Gnews is styled after `rn' and seems to work like RMAIL.  GNUS feels more
  4177.   like VM.  People have complained that GNUS uses a lot of CPU time (it
  4178.   does).  Some people have complained that Gnews is slower than GNUS.
  4179.   
  4180.   For more information about GNUS, see question 108.
  4181.   
  4182.   Gnews was written by Matthew P. Wiener <weemba@libra.wistar.upenn.edu>.
  4183.   The latest version seems to be 2.0, posted October 3, 1988.  Matthew
  4184.   posted some fixes on October 26, 1988.  Gnews does not appear to have been
  4185.   supported after this date.  In particular, it has been reported that Gnews
  4186.   does not work with Emacs 18.57.  There is a newsgroup for Gnews called
  4187.   gnu.emacs.gnews.
  4188.   
  4189. 161: Why does `rnews' say "No News is good news" when there is news?
  4190.   
  4191.   rnews doesn't speak NNTP.  You may need to use GNUS or Gnews.
  4192.   
  4193. 162: Why doesn't GNUS work anymore via NNTP?
  4194.   
  4195.   There is a bug in NNTP version 1.5.10, such that when multiple requests
  4196.   are sent to the NNTP server, the server only handles the first one before
  4197.   blocking waiting for more input which never comes.  NNTP version 1.5.11
  4198.   claims to fix this.
  4199.   
  4200.   You can work around the bug inside Emacs like this:
  4201.   
  4202.     (setq nntp-maximum-request 1)
  4203.   
  4204.   I also have a patch for NNTP 1.5.10 by Mike Pelletier
  4205.   <stealth@engin.umich.edu> that is based on the timeout code that was in
  4206.   1.5.9.  However, please try to upgrade to 1.5.11 first.
  4207.   
  4208.   You can find out what version of NNTP your news server is running by
  4209.   telnetting to the NNTP port (usually 119) on the news server machine (ie.,
  4210.   `telnet server-machine 119').  The server should give its version number
  4211.   in the welcome message.  Type `quit' to get out.
  4212.   
  4213. 163: How do I view text with embedded underlining (eg., ClariNews)?
  4214.   
  4215.   Underlining appears like this:
  4216.   
  4217.     _^Hu_^Hn_^Hd_^He_^Hr_^Hl_^Hi_^Hn_^Hi_^Hn_^Hg
  4218.   
  4219.   You can destructively remove underlining with M-x ununderline-region.
  4220.   
  4221.   For ClariNews articles, clari-clean.el by David N. Blank-Edelman
  4222.   <dnb@meshugge.media.mit.edu> will remove both underlining and overstriking
  4223.   automatically.
  4224.   
  4225. 164: When I try to post a long article in GNUS (about 10K or longer), I get
  4226.  the error, "Writing to process: no more processes, nntpd"
  4227.   
  4228.   Upgrade to Emacs 18.58 or higher.
  4229.   
  4230. 165: How do I save all the items of a multi-part posting in GNUS?
  4231.   
  4232.   Use gnus-mark.el by Jamie Zawinski <jwz@lucid.com>.
  4233.   
  4234. 166: Why does GNUS put the subjects in replies beyond the 80th column?
  4235.   
  4236.   This is a feature.  If you set gnus-thread-hide-subject to non-nil, GNUS
  4237.   will only display the subject of the first posting in a thread, even if
  4238.   some of the replies use different subjects.  It hides the subjects by
  4239.   putting them past the edge of the window and setting truncate lines to t.
  4240.   
  4241.   If your screen looks messed up, then for some reason truncate-lines in
  4242.   your `*Subject*' buffer has been set to nil.  It should be set to t.
  4243.   
  4244.   (I have an enhancement to GNUS 3.13 that will make it only hide the subject
  4245.   of a posting when it is unchanged from the followed-up-to posting.  Thus,
  4246.   you can use the subject hiding feature and still know when someone changes
  4247.   the subject.  (I have forgotten who originally gave me the idea for this.))
  4248.   
  4249. 167: Why is GNUS so slow to start up?
  4250.   
  4251.   GNUS does several things that take quadratic time of the number of
  4252.   newsgroups that are listed in .newsrc.  The quick fix for this is to
  4253.   remove all the newsgroups in which you have no interest from your .newrc
  4254.   file by using GNUS's C-k command in the `*Newsgroup*' buffer after
  4255.   displaying all newsgroups with the L command.  If you were to directly
  4256.   edit your .newsrc to remove the newsgroups, GNUS would add them back.
  4257.   
  4258.   GNUS uses a quadratic algorithm to check for duplicates when the .newsrc
  4259.   file is newer than the .newsrc.el file (ie., you edited your .newsrc).
  4260.   GNUS uses a quadratic algorithm to check for new newsgroups every time it
  4261.   connects to the news server.  {There may be other quadratic algorithms
  4262.   that I am not aware of.}
  4263.   
  4264.   You can speed up GNUS by using the C-k command in the *Newsgroup* buffer
  4265.   to remove newsgroups from your .newsrc file.
  4266.   
  4267.   Of course, GNUS will run faster if you make sure it is byte-compiled.
  4268.   
  4269.   Felix Lee wrote some enhancements called `gnus-speedups.el' that fix some
  4270.   of the problems.  See the Emacs Lisp Archive.
  4271.   
  4272. 168: How do I catch up all newsgroups in GNUS?
  4273.   
  4274.   In the `*Newsgroup*' buffer, type the following magical incantation:
  4275.   
  4276.     M-< C-x ( C-@ c y C-u C-@ C-e C-f C-f M-0 C-x )
  4277.   
  4278.   Leave off the "M-<" if you only want to catch up from point to the end of
  4279.   the `*Newsgroup' buffer.
  4280.   
  4281. 169: Why can't I kill in GNUS on the Newsgroups/Keywords/Control line?
  4282.   
  4283.   GNUS 3.14.1 will complain that the `Newsgroups:', `Keywords:', and
  4284.   `Control:' headers are `Unknown header field's.
  4285.   
  4286.   For the `Newsgroups:' header, there is an easy workaround: kill on the
  4287.   `Xref' header instead, which will be present on any cross-posted article.
  4288.   
  4289.   If you really want to kill on one of these headers, you can do it like
  4290.   this:
  4291.   
  4292.     (gnus-kill nil "^Newsgroups: .*\\(bad\\.group\\|worse\\.group\\)")
  4293.   
  4294.   Various people (eg., Greg Holley <holley@acuson.com>) have posted
  4295.   solutions to allow more efficient killing on these headers than the
  4296.   preceding solution.  Masanobu Umeda plans to fix this problem.
  4297.   
  4298. 170: How do I get rid of flashing messages in GNUS for slow connections?
  4299.   
  4300.   GNUS outputs "NNTP: Reading..." message and then clears them, over and
  4301.   over.  In version 3.14.1 there is a variable named nntp-debug-read that
  4302.   can help.  Johan Vromans <jv@mh.nl> wrote a fix.  Others have also written
  4303.   fixes.
  4304.   
  4305. 171: Why is catch up slow in Gnews/GNUS?
  4306.   
  4307.   Because GNUS is marking crosspostings read.  {I think it should do this at
  4308.   the time the article is read to spread out the load.  Maybe someone will
  4309.   write the code to do this.}
  4310.   
  4311. 172: Why does GNUS hang for a long time when posting?
  4312.   
  4313.   David Lawrence <tale@uunet.uu.net> explains:
  4314.   
  4315.     The problem is almost always interaction between NNTP and C News.  NNTP
  4316.     POST asks C News's inews to not background itself but rather hang around
  4317.     and give its exit status so it knows whether the post was successful.
  4318.     (That wait will on some systems not return the exit status of the
  4319.     waited for job is a different sort of problem.)  It ends up taking a
  4320.     long time because inews is calling relaynews, which often waits for
  4321.     another relaynews to free the lock on the news system so it can file the
  4322.     article.
  4323.   
  4324.     My preferred solution is to change inews to not call relaynews, but
  4325.     rather use newsspool.  This loses some error-catching functionality, but
  4326.     is for the most part safe as inews will detect a lot of the errors on
  4327.     its own.  The C News folks have sped up inews, too, so speed should look
  4328.     better to most folks as that update propagates around.
  4329.   
  4330. 173: Why don't my news postings in GNUS get past the local machine?
  4331.   
  4332.   Three possible reasons: local distribution, C News date problem (see
  4333.   question 174, and the path problem.  This piece of code may fix the path
  4334.   problem for you:
  4335.   
  4336.     (setq gnus-use-generic-path t)
  4337.   
  4338. 174: Why is the GNUS-generated `Date:' header invalid?
  4339.   
  4340.   GNUS generates `Date:' headers without time zones.  C-News's `inews'
  4341.   doesn't replace it with a valid header, but will generate it if not
  4342.   already there.  If it is invalid, the article will not be forwarded
  4343.   properly.  Quick fix:
  4344.   
  4345.     (defun gnus-inews-date () nil)
  4346.   
  4347.   This is not fixed as of GNUS 3.14.1.
  4348.   
  4349. 175: Why doesn't GNUS generate the `Lines:' header?
  4350.   
  4351.   GNUS was written for B news, which would generate the `Lines:' header.  C
  4352.   news doesn't.  There is a comment in C news's `inews' that you can
  4353.   uncomment to enable this functionality.  Or you can have GNUS generate the
  4354.   header, for example:
  4355.   
  4356.     ;; idea by jbryans@beach.csulb.edu (Jack Bryans)
  4357.     (defun add-lines-header ()
  4358.       ;; Count the number of lines in the current posting and insert the
  4359.       ;; header line Lines into the message.
  4360.       (save-excursion
  4361.         (goto-char (point-min))
  4362.         (if (search-forward "\n\n") ;; ***** I suspect this is wrong *****
  4363.           (let ((lines (count-lines (point) (point-max))))
  4364.             (forward-line -1)
  4365.             (insert-string "Lines: " lines "\n")))))
  4366.   
  4367.   Mike Williams <mike-w@cs.aukuni.ac.nz> has written something similar.
  4368.   
  4369.   Ronald Florence <ron@mlfarm.com> has a patch for GNUS that makes it
  4370.   calculate the `Lines:' header for incoming articles when necessary that
  4371.   works for sites with local news spools.
  4372.   
  4373.   David Lawrence <tale@uunet.uu.net> says that GNUS 3.14.1 generates Lines
  4374.   if gnus-news-system is Cnews.
  4375.   
  4376. 176: Why do I get "Cannot open load file" "nntp" when compiling GNUS?
  4377.   
  4378.   Specifically, the error message is this:
  4379.   
  4380.     Error occurred processing gnus.el: File error (("Cannot open load file" "nntp"))
  4381.   
  4382.   This means that nntp.el is not in Emacs's load-path, which is easy to
  4383.   happen when compiling using the Makefile.
  4384.   
  4385.   Easiest solution: set EMACSLOADPATH in Makefile (idea from Glenn Gribble
  4386.   <glenn@netcom.com>):
  4387.   
  4388.     EMACSLOADPATH=/usr/local/emacs/lisp:.
  4389.     ELC= env EMACSLOADPATH=$(EMACSLOADPATH) emacs -batch -f batch-byte-compile
  4390.   
  4391.   Another solution, in hack.el put this:
  4392.   
  4393.     (defun gross-hack () (setq load-path (cons "/directory" load-path)))
  4394.   
  4395.   Then in Makefile:
  4396.   
  4397.     ELC= emacs -batch -l hack.el -f gross-hack -f batch-byte-compile
  4398.   
  4399. 177: How do I kill all articles in GNUS but those matching a pattern?
  4400.   
  4401.   Example:
  4402.   
  4403.     ;; kill everything
  4404.     (gnus-kill "subject" "" nil nil)
  4405.     ;; then restore stuff by our favorite poster
  4406.     (gnus-kill "from" "good-guy"
  4407.                (function
  4408.                 (lambda ()
  4409.                   (if (eq ?X (char-after (save-excursion
  4410.                                            (beginning-of-line 1)
  4411.                                            (point))))
  4412.                       (gnus-Subject-clear-mark-forward 1))))
  4413.                t)
  4414.   
  4415.  
  4416.  
  4417. ----------------------------------------------------------------------
  4418. Copyright (C) 1990, 1991, 1992 Joseph Brian Wells
  4419. Copyright (C) 1992, 1993 Steven Byrnes
  4420.  
  4421. This list of frequently asked questions about GNU Emacs with answers
  4422. ("FAQ") may be translated into other languages, transformed into other
  4423. formats (e.g. Texinfo, Info, WWW, WAIS, etc.), and updated with new
  4424. information.  The same conditions apply to any derivative of the FAQ as
  4425. apply to the FAQ itself.  Every copy of the FAQ must include this notice
  4426. or an approved translation, information on who is currently maintaining
  4427. the FAQ and how to contact them (including their e-mail address), and
  4428. information on where the latest version of the FAQ is archived (including
  4429. FTP information).  The FAQ may be copied and redistributed under these
  4430. conditions, except that the FAQ may not be embedded in a larger literary
  4431. work unless that work itself allows free copying and redistribution.
  4432.